Skip to content

Commit

Permalink
Merge pull request #1339 from hydephp/skip-unit-test-when-not-running…
Browse files Browse the repository at this point in the history
…-in-monorepo

Skip unit test when not running in the monorepo
  • Loading branch information
caendesilva committed Mar 20, 2023
2 parents cd4affb + 9061783 commit 48955e5
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -14,6 +14,15 @@
*/
class HydeConfigFilesAreMatchingTest extends TestCase
{
protected function setUp(): void
{
parent::setUp();

if (file_exists(Hyde::path('README.md')) && ! str_contains(file_get_contents(Hyde::path('README.md')), 'HydePHP - Source Monorepo')) {
$this->markTestSkipped('Test skipped when not running in the monorepo.');
}
}

public function test_hyde_config_files_are_matching()
{
$this->assertFileEqualsIgnoringNewlineType(
Expand Down

0 comments on commit 48955e5

Please sign in to comment.