Skip to content

Commit

Permalink
Added test to cover PR #3177
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddanbrown committed Jan 24, 2022
1 parent 6db6476 commit aae3cd6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Entity/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,21 @@ public function test_recently_updated_pages_view()
->assertElementContains('.entity-list .page:nth-child(1)', $content['page']->name);
}

public function test_recently_updated_pages_view_shows_updated_by_details()
{
$user = $this->getEditor();
/** @var Page $page */
$page = Page::query()->first();

$this->actingAs($user)->put($page->getUrl(), [
'name' => 'Updated title',
'html' => '<p>Updated content</p>',
]);

$resp = $this->asAdmin()->get('/pages/recently-updated');
$resp->assertElementContains('.entity-list .page:nth-child(1)', 'Updated 1 second ago by ' . $user->name);
}

public function test_recently_updated_pages_on_home()
{
/** @var Page $page */
Expand Down

0 comments on commit aae3cd6

Please sign in to comment.