We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 182-191 (lines=10) @@ | ||
179 | $this->assertEmpty($this->crudPanel->query->getEagerLoads()); |
|
180 | } |
|
181 | ||
182 | public function testGetEntries() |
|
183 | { |
|
184 | $this->crudPanel->setModel(User::class); |
|
185 | ||
186 | $entries = $this->crudPanel->getEntries(); |
|
187 | ||
188 | $this->assertInstanceOf(Collection::class, $entries); |
|
189 | $this->assertEquals(1, $entries->count()); |
|
190 | $this->assertEquals(User::find(1), $entries->first()); |
|
191 | } |
|
192 | ||
193 | public function testGetEntriesWithFakes() |
|
194 | { |
|
@@ 193-206 (lines=14) @@ | ||
190 | $this->assertEquals(User::find(1), $entries->first()); |
|
191 | } |
|
192 | ||
193 | public function testGetEntriesWithFakes() |
|
194 | { |
|
195 | $this->markTestIncomplete('Not correctly implemented'); |
|
196 | ||
197 | $this->crudPanel->setModel(Article::class); |
|
198 | ||
199 | $entries = $this->crudPanel->getEntries(); |
|
200 | ||
201 | // TODO: the getEntries method automatically adds fakes. the state of the models should not be changed by the |
|
202 | // getEntries method. at most, the getEntries method should be renamed. |
|
203 | $this->assertInstanceOf(Collection::class, $entries); |
|
204 | $this->assertEquals(1, $entries->count()); |
|
205 | $this->assertEquals(Article::find(1), $entries->first()); |
|
206 | } |
|
207 | ||
208 | public function testGetFieldsCreateForm() |
|
209 | { |