Skip to content

Commit c973bd7

Browse files
committed
test: refactor by rector
1 parent abc663c commit c973bd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/system/Config/BaseConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testEnvironmentOverrides(): void
110110
// override config with shortPrefix ENV var
111111
$this->assertSame('hubbahubba', $config->delta);
112112
// incorrect env name should not inject property
113-
$this->assertFalse(property_exists($config, 'notthere'));
113+
$this->assertObjectNotHasAttribute('notthere', $config);
114114
// empty ENV var should not affect config setting
115115
$this->assertSame('pineapple', $config->fruit);
116116
// non-empty ENV var should overrideconfig setting

tests/system/Test/FabricatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public function testCreateMockSetsDatabaseFields(): void
410410
$this->assertIsInt($result->created_at);
411411
$this->assertIsInt($result->updated_at);
412412

413-
$this->assertTrue(property_exists($result, 'deleted_at'));
413+
$this->assertObjectHasAttribute('deleted_at', $result);
414414
$this->assertNull($result->deleted_at);
415415
}
416416

0 commit comments

Comments
 (0)