1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Input WYSIWYG: Fixed existing tests, fixed empty description handling

This commit is contained in:
Dan Brown
2023-12-20 17:21:09 +00:00
parent 7fd6d5b2cc
commit a21ca44633
7 changed files with 17 additions and 8 deletions

View File

@@ -102,13 +102,13 @@ class ReferencesTest extends TestCase
foreach ($entities as $entity) {
$resp = $this->get($entity->getUrl());
$resp->assertSee('Referenced on 1 page');
$resp->assertDontSee('Referenced on 1 pages');
$resp->assertSee('Referenced by 1 item');
$resp->assertDontSee('Referenced by 1 items');
}
$this->createReference($otherPage, $entities['page']);
$resp = $this->get($entities['page']->getUrl());
$resp->assertSee('Referenced on 2 pages');
$resp->assertSee('Referenced by 2 items');
}
public function test_references_to_visible_on_references_page()