Skip to content

Commit

Permalink
Fix bad test refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Friars committed Nov 27, 2023
1 parent ccd32b6 commit 3cfe62b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Feature/SyncLayoutsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@
expect($layout->type)->toBe(LayoutType::Custom);
expect($layout->layoutable)->toBe(Page::layoutKey());

expect($layout = Layout::where('key', 'Posts.Index')->first())->not->toBeNull();
expect($layout = Layout::where('key', 'posts.index')->first())->not->toBeNull();
expect($layout->name)->toBe('Post Index');
expect($layout->type)->toBe(LayoutType::Index);
expect($layout->layoutable)->toBe(Post::layoutKey());

expect($layout = Layout::where('key', 'Posts.Show')->first())->not->toBeNull();
expect($layout = Layout::where('key', 'posts.show')->first())->not->toBeNull();
expect($layout->name)->toBe('Post Details');
expect($layout->type)->toBe(LayoutType::Show);
expect($layout->layoutable)->toBe(Post::layoutKey());

expect($layout = Layout::where('key', 'Posts.Featured')->first())->not->toBeNull();
expect($layout = Layout::where('key', 'posts.featured')->first())->not->toBeNull();
expect($layout->name)->toBe('Featured Post');
expect($layout->type)->toBe(LayoutType::Custom);
expect($layout->layoutable)->toBe(Post::layoutKey());
Expand Down

0 comments on commit 3cfe62b

Please sign in to comment.