Skip to content

Commit

Permalink
MNMT Fix unit test when running from vendor folder
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 28, 2023
1 parent 7a16b8b commit f6bc417
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion _config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@

// Avoid creating global variables
call_user_func(function () {

});
2 changes: 1 addition & 1 deletion tests/php/Models/LinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected function setUp(): void

/** @var Image $image */
$image = $this->objFromFixture(Image::class, 'image-1');
$image->setFromLocalFile(Director::baseFolder() . '/tests/resources/600x400.png');
$image->setFromLocalFile(dirname(dirname(dirname(__FILE__))) . '/resources/600x400.png');
$image->write();
$image->publishSingle();

Expand Down

0 comments on commit f6bc417

Please sign in to comment.