Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/unit/Codeception/Module/FilesystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ public function _tearDown()

public function testSeeFileFoundPassesWhenFileExists()
{
$this->module->seeFileFound('tests/_support/_generated/.gitignore');
$this->module->seeFileFound(codecept_root_dir('tests/_support/_generated/.gitignore'));
}

public function testSeeFileFoundPassesWhenFileExistsInSubdirectoryOfPath()
{
$this->module->seeFileFound('UnitTesterActions.php', 'tests/_support/');
$this->module->seeFileFound('UnitTesterActions.php', codecept_root_dir('tests/_support/'));
}

public function testSeeFileFoundFailsWhenFileDoesNotExist()
Expand Down Expand Up @@ -68,8 +68,8 @@ public function testDontSeeFileFoundPassesWhenFileDoesNotExistsInPath()
public function testDontSeeFileFoundFailsWhenFileExists()
{
$this->expectException(AssertionFailedError::class);
$this->expectExceptionMessage('Failed asserting that file "tests/_support/_generated/.gitignore" does not exist.');
$this->module->dontSeeFileFound('tests/_support/_generated/.gitignore');
$this->expectExceptionMessageRegExp('/Failed asserting that file ".*tests\/_support\/_generated\/\.gitignore" does not exist\./');
$this->module->dontSeeFileFound(codecept_root_dir('tests/_support/_generated/.gitignore'));
}

public function testDontSeeFileFoundFailsWhenPathDoesNotExist()
Expand Down