We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 112-120 (lines=9) @@ | ||
109 | 'upload' => true, |
|
110 | ]; |
|
111 | ||
112 | public function testGetEntry() |
|
113 | { |
|
114 | $this->crudPanel->setModel(User::class); |
|
115 | $user = User::find(1); |
|
116 | ||
117 | $entry = $this->crudPanel->getEntry($user->id); |
|
118 | ||
119 | $this->assertEquals($user, $entry); |
|
120 | } |
|
121 | ||
122 | public function testGetEntryWithFakes() |
|
123 | { |
|
@@ 122-137 (lines=16) @@ | ||
119 | $this->assertEquals($user, $entry); |
|
120 | } |
|
121 | ||
122 | public function testGetEntryWithFakes() |
|
123 | { |
|
124 | $this->markTestIncomplete('Not correctly implemented'); |
|
125 | ||
126 | $this->crudPanel->setModel(Article::class); |
|
127 | $article = Article::find(1); |
|
128 | ||
129 | $entry = $this->crudPanel->getEntry($article->id); |
|
130 | ||
131 | // TODO: the withFakes call is needed for this to work. the state of the model should not be changed by the |
|
132 | // getEntry method. the transformation of the fakes columns should be kept in a different crud panel |
|
133 | // attribute or, at most, the getEntry method should be renamed. |
|
134 | $article->withFakes(); |
|
135 | ||
136 | $this->assertEquals($article, $entry); |
|
137 | } |
|
138 | ||
139 | public function testGetEntryExists() |
|
140 | { |