We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7e1f2 commit 5cfff26Copy full SHA for 5cfff26
tests/Feature/Api/SiteControllerTest.php
@@ -84,11 +84,12 @@ public function testRegisteringASiteTwiceCreatesOnlyOneRow(): void
84
85
$this->postJson(
86
'/api/v1/register',
87
- ["url" => "https://www.joomla.org", "key" => "foobar123foobar123foobar123foobar123"]
+ ["url" => "https://www.joomla.org", "key" => "abcdef"]
88
);
89
90
- $count = Site::where('url', 'https://www.joomla.org')->count();
91
- $this->assertEquals(1, $count);
+ $rows = Site::where('url', 'https://www.joomla.org')->get();
+ $this->assertEquals(1, $rows->count());
92
+ $this->assertEquals('abcdef', $rows->first()->key);
93
}
94
95
public function testRegisteringASiteFailsWhenHealthCheckFails(): void
0 commit comments