Skip to content

Commit

Permalink
Fixes the tests (joomla#41000)
Browse files Browse the repository at this point in the history
* Fixes the tests

* more docs

* revert

* restore test

---------

Co-authored-by: Harald Leithner <[email protected]>
  • Loading branch information
laoneo and HLeithner authored Jun 26, 2023
1 parent 8338ea7 commit aa5b197
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions tests/Unit/Libraries/Cms/Date/DateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ public function testMagicGetter()
$this->assertSame('th', $date->ordinal);
$this->assertSame('10', $date->week);
$this->assertSame('1978', $date->year);

// Test that a notice is generated when accessing something that the magic getter cannot provide.
$this->expectNotice();
$date->noSuchProperty;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,6 @@ public function testInvalidConfigFile()
$plugin->alterSiteStatus($event);

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

0 comments on commit aa5b197

Please sign in to comment.