Skip to content

Commit

Permalink
Bypass some FulltextSearchable::enable() bug in recipe-cms test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rainville committed Apr 22, 2020
1 parent 17b3a3e commit 221c239
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/php/Forms/FileFormBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ public function setUp()

public function tearDown()
{
// Unpublishing these files is necessary because when this test is run through the recipe-cms phpunit suite,
// the SearchFormTest test enables FulltextSearchable which leaves the fixture in a published state
/** @var File $file */
$file = $this->objFromFixture(File::class, 'file1');
$file->doUnpublish();

$file = $this->objFromFixture(Image::class, 'image1');
$file->doUnpublish();

TestAssetStore::reset();
parent::tearDown();
}
Expand Down

0 comments on commit 221c239

Please sign in to comment.