Skip to content

Commit 56da25b

Browse files
committed
Fixed failing tests from dompdf chanages
1 parent 24f4feb commit 56da25b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/Entity/PageContentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ public function test_page_markdown_task_list_rendering()
527527

528528
$pageView = $this->get($page->getUrl());
529529
$pageView->assertElementExists('.page-content li.task-list-item input[type=checkbox]');
530-
$pageView->assertElementExists('.page-content li.task-list-item input[type=checkbox][checked=checked]');
530+
$pageView->assertElementExists('.page-content li.task-list-item input[type=checkbox][checked]');
531531
}
532532

533533
public function test_page_markdown_strikethrough_rendering()

tests/Unit/ConfigTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ public function test_saml2_idp_authn_context_string_parsed_as_space_separated_ar
7878

7979
public function test_dompdf_remote_fetching_controlled_by_allow_untrusted_server_fetching_false()
8080
{
81-
$this->checkEnvConfigResult('ALLOW_UNTRUSTED_SERVER_FETCHING', 'false', 'dompdf.defines.enable_remote', false);
82-
$this->checkEnvConfigResult('ALLOW_UNTRUSTED_SERVER_FETCHING', 'true', 'dompdf.defines.enable_remote', true);
81+
$this->checkEnvConfigResult('ALLOW_UNTRUSTED_SERVER_FETCHING', 'false', 'dompdf.options.enable_remote', false);
82+
$this->checkEnvConfigResult('ALLOW_UNTRUSTED_SERVER_FETCHING', 'true', 'dompdf.options.enable_remote', true);
8383
}
8484

8585
public function test_dompdf_paper_size_options_are_limited()
8686
{
87-
$this->checkEnvConfigResult('EXPORT_PAGE_SIZE', 'cat', 'dompdf.defines.default_paper_size', 'a4');
88-
$this->checkEnvConfigResult('EXPORT_PAGE_SIZE', 'letter', 'dompdf.defines.default_paper_size', 'letter');
89-
$this->checkEnvConfigResult('EXPORT_PAGE_SIZE', 'a4', 'dompdf.defines.default_paper_size', 'a4');
87+
$this->checkEnvConfigResult('EXPORT_PAGE_SIZE', 'cat', 'dompdf.options.default_paper_size', 'a4');
88+
$this->checkEnvConfigResult('EXPORT_PAGE_SIZE', 'letter', 'dompdf.options.default_paper_size', 'letter');
89+
$this->checkEnvConfigResult('EXPORT_PAGE_SIZE', 'a4', 'dompdf.options.default_paper_size', 'a4');
9090
}
9191

9292
public function test_snappy_paper_size_options_are_limited()

0 commit comments

Comments
 (0)