Skip to content

Commit 4b2d5fe

Browse files
committed
style: apply mago format to the new test
Signed-off-by: Joey Smith <jsmith@webinertia.net>
1 parent 29416f7 commit 4b2d5fe

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

‎test/unit/NoRecordExistsTest.php‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,6 @@ public function basicFindsNoRecord()
3939
static::assertTrue($validator->isValid('nosuchvalue'));
4040
}
4141

42-
/**
43-
* PDO reports "no rows" as false rather than null; that must still count as no record.
44-
*
45-
* @throws Exception
46-
*/
47-
#[Test]
48-
public function noRowsReportedAsFalseFindsNoRecord(): void
49-
{
50-
$validator = new NoRecordExists([
51-
'table' => 'users',
52-
'field' => 'field1',
53-
'adapter' => $this->getMockNoResult(false),
54-
]);
55-
static::assertTrue($validator->isValid('nosuchvalue'));
56-
}
57-
5842
/**
5943
* Test basic function of RecordExists (no exclusion)
6044
*
@@ -153,6 +137,22 @@ public function excludeWithStringNoRecord()
153137
static::assertTrue($validator->isValid('nosuchvalue'));
154138
}
155139

140+
/**
141+
* PDO reports "no rows" as false rather than null; that must still count as no record.
142+
*
143+
* @throws Exception
144+
*/
145+
#[Test]
146+
public function noRowsReportedAsFalseFindsNoRecord(): void
147+
{
148+
$validator = new NoRecordExists([
149+
'table' => 'users',
150+
'field' => 'field1',
151+
'adapter' => $this->getMockNoResult(false),
152+
]);
153+
static::assertTrue($validator->isValid('nosuchvalue'));
154+
}
155+
156156
/**
157157
* @throws Exception
158158
*/

0 commit comments

Comments
 (0)