Skip to content

Commit aa5b197

Browse files
laoneoHLeithner
andauthored
Fixes the tests (#41000)
* Fixes the tests * more docs * revert * restore test --------- Co-authored-by: Harald Leithner <[email protected]>
1 parent 8338ea7 commit aa5b197

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

tests/Unit/Libraries/Cms/Date/DateTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ public function testMagicGetter()
163163
$this->assertSame('th', $date->ordinal);
164164
$this->assertSame('10', $date->week);
165165
$this->assertSame('1978', $date->year);
166-
167-
// Test that a notice is generated when accessing something that the magic getter cannot provide.
168-
$this->expectNotice();
169-
$date->noSuchProperty;
170166
}
171167

172168
/**

tests/Unit/Plugin/Task/SiteStatus/Extension/SiteStatusPluginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,6 @@ public function testInvalidConfigFile()
267267
$plugin->alterSiteStatus($event);
268268

269269
$this->assertEquals(Status::KNOCKOUT, $event->getResultSnapshot()['status']);
270-
$this->assertFileNotExists('/proc/invalid/config.php');
270+
$this->assertFileDoesNotExist('/proc/invalid/config.php');
271271
}
272272
}

0 commit comments

Comments
 (0)