- Commands that run a truncate DB action failed due to messing up the
test transations so we mnaully work around that now to ensure a
transaction exists for the test to cleanup afterwards.
- Updated dompdf lib version
"ext-json": "*",
"ext-mbstring": "*",
"ext-xml": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-xml": "*",
- "barryvdh/laravel-dompdf": "^0.8.7",
+ "barryvdh/laravel-dompdf": "^0.9.0",
"barryvdh/laravel-snappy": "^0.4.8",
"doctrine/dbal": "^2.12.1",
"facade/ignition": "^1.16.4",
"barryvdh/laravel-snappy": "^0.4.8",
"doctrine/dbal": "^2.12.1",
"facade/ignition": "^1.16.4",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "5b6d8f6e2d5594a7b0b5016c5fe284da",
+ "content-hash": "b26d29958d84c91b164a8234d1a7e9e9",
"packages": [
{
"name": "aws/aws-sdk-php",
"packages": [
{
"name": "aws/aws-sdk-php",
},
{
"name": "barryvdh/laravel-dompdf",
},
{
"name": "barryvdh/laravel-dompdf",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-dompdf.git",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-dompdf.git",
- "reference": "30310e0a675462bf2aa9d448c8dcbf57fbcc517d"
+ "reference": "5b99e1f94157d74e450f4c97e8444fcaffa2144b"
},
"dist": {
"type": "zip",
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/30310e0a675462bf2aa9d448c8dcbf57fbcc517d",
- "reference": "30310e0a675462bf2aa9d448c8dcbf57fbcc517d",
+ "url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/5b99e1f94157d74e450f4c97e8444fcaffa2144b",
+ "reference": "5b99e1f94157d74e450f4c97e8444fcaffa2144b",
"shasum": ""
},
"require": {
"shasum": ""
},
"require": {
- "dompdf/dompdf": "^0.8",
"illuminate/support": "^5.5|^6|^7|^8",
"illuminate/support": "^5.5|^6|^7|^8",
},
"type": "library",
"extra": {
"branch-alias": {
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "0.8-dev"
+ "dev-master": "0.9-dev"
},
"laravel": {
"providers": [
},
"laravel": {
"providers": [
],
"support": {
"issues": "https://github.com/barryvdh/laravel-dompdf/issues",
],
"support": {
"issues": "https://github.com/barryvdh/laravel-dompdf/issues",
- "source": "https://github.com/barryvdh/laravel-dompdf/tree/master"
+ "source": "https://github.com/barryvdh/laravel-dompdf/tree/v0.9.0"
- "time": "2020-09-07T11:50:18+00:00"
+ "time": "2020-12-27T12:05:53+00:00"
},
{
"name": "barryvdh/laravel-snappy",
},
{
"name": "barryvdh/laravel-snappy",
},
{
"name": "dompdf/dompdf",
},
{
"name": "dompdf/dompdf",
"source": {
"type": "git",
"url": "https://github.com/dompdf/dompdf.git",
"source": {
"type": "git",
"url": "https://github.com/dompdf/dompdf.git",
- "reference": "db91d81866c69a42dad1d2926f61515a1e3f42c5"
+ "reference": "8768448244967a46d6e67b891d30878e0e15d25c"
},
"dist": {
"type": "zip",
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/dompdf/dompdf/zipball/db91d81866c69a42dad1d2926f61515a1e3f42c5",
- "reference": "db91d81866c69a42dad1d2926f61515a1e3f42c5",
+ "url": "https://api.github.com/repos/dompdf/dompdf/zipball/8768448244967a46d6e67b891d30878e0e15d25c",
+ "reference": "8768448244967a46d6e67b891d30878e0e15d25c",
"shasum": ""
},
"require": {
"shasum": ""
},
"require": {
"ext-mbstring": "*",
"phenx/php-font-lib": "^0.5.2",
"phenx/php-svg-lib": "^0.3.3",
"ext-mbstring": "*",
"phenx/php-font-lib": "^0.5.2",
"phenx/php-svg-lib": "^0.3.3",
},
"require-dev": {
"mockery/mockery": "^1.3",
},
"require-dev": {
"mockery/mockery": "^1.3",
- "phpunit/phpunit": "^7.5",
+ "phpunit/phpunit": "^7.5 || ^8 || ^9",
"squizlabs/php_codesniffer": "^3.5"
},
"suggest": {
"squizlabs/php_codesniffer": "^3.5"
},
"suggest": {
"homepage": "https://github.com/dompdf/dompdf",
"support": {
"issues": "https://github.com/dompdf/dompdf/issues",
"homepage": "https://github.com/dompdf/dompdf",
"support": {
"issues": "https://github.com/dompdf/dompdf/issues",
- "source": "https://github.com/dompdf/dompdf/tree/master"
+ "source": "https://github.com/dompdf/dompdf/tree/v1.0.2"
- "time": "2020-08-30T22:54:22+00:00"
+ "time": "2021-01-08T14:18:52+00:00"
},
{
"name": "dragonmantank/cron-expression",
},
{
"name": "dragonmantank/cron-expression",
use BookStack\Actions\ActivityType;
use BookStack\Entities\Models\Page;
use BookStack\Actions\ActivityType;
use BookStack\Entities\Models\Page;
+use Illuminate\Support\Facades\DB;
use Tests\TestCase;
class ClearActivityCommandTest extends TestCase
use Tests\TestCase;
class ClearActivityCommandTest extends TestCase
'user_id' => $this->getEditor()->id
]);
'user_id' => $this->getEditor()->id
]);
$exitCode = \Artisan::call('bookstack:clear-activity');
$exitCode = \Artisan::call('bookstack:clear-activity');
+ DB::beginTransaction();
$this->assertTrue($exitCode === 0, 'Command executed successfully');
$this->assertTrue($exitCode === 0, 'Command executed successfully');
<?php namespace Tests\Commands;
use BookStack\Entities\Models\Page;
<?php namespace Tests\Commands;
use BookStack\Entities\Models\Page;
+use Illuminate\Support\Facades\DB;
use Tests\TestCase;
class ClearViewsCommandTest extends TestCase
use Tests\TestCase;
class ClearViewsCommandTest extends TestCase
$exitCode = \Artisan::call('bookstack:clear-views');
$exitCode = \Artisan::call('bookstack:clear-views');
+ DB::beginTransaction();
$this->assertTrue($exitCode === 0, 'Command executed successfully');
$this->assertDatabaseMissing('views', [
$this->assertTrue($exitCode === 0, 'Command executed successfully');
$this->assertDatabaseMissing('views', [
use BookStack\Auth\Permissions\JointPermission;
use BookStack\Entities\Models\Page;
use BookStack\Auth\Permissions\JointPermission;
use BookStack\Entities\Models\Page;
+use Illuminate\Support\Facades\DB;
use Tests\TestCase;
class RegeneratePermissionsCommandTest extends TestCase
{
public function test_regen_permissions_command()
{
use Tests\TestCase;
class RegeneratePermissionsCommandTest extends TestCase
{
public function test_regen_permissions_command()
{
JointPermission::query()->truncate();
$page = Page::first();
JointPermission::query()->truncate();
$page = Page::first();
$exitCode = \Artisan::call('bookstack:regenerate-permissions');
$this->assertTrue($exitCode === 0, 'Command executed successfully');
$exitCode = \Artisan::call('bookstack:regenerate-permissions');
$this->assertTrue($exitCode === 0, 'Command executed successfully');
+ DB::beginTransaction();
$this->assertDatabaseHas('joint_permissions', ['entity_id' => $page->id]);
}
$this->assertDatabaseHas('joint_permissions', ['entity_id' => $page->id]);
}