Skip to content

Commit

Permalink
Remove more unit test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jun 5, 2024
1 parent 0673b36 commit 6a9fcf0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions tests/Content/VersionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ public function testContentMultiLanguage(): void
id: VersionId::published()
);

$version->create([
Data::write($this->contentFile('en'), [
'title' => 'Test'
], 'en');
]);

$version->create([
Data::write($this->contentFile('de'), [
'title' => 'Töst'
], 'de');
]);

$this->assertSame('Test', $version->content('en')->get('title')->value());
$this->assertSame('Töst', $version->content('de')->get('title')->value());
Expand All @@ -131,7 +131,7 @@ public function testContentSingleLanguage(): void
id: VersionId::published()
);

$version->create([
Data::write($this->contentFile(), [
'title' => 'Test'
]);

Expand Down Expand Up @@ -282,7 +282,10 @@ public function testEnsureMultiLanguage(): void
id: VersionId::published()
);

$version->create([], 'de');
Data::write($this->contentFile('de'), [
'title' => 'Test'
]);

$this->assertTrue($version->ensure('de'));
}

Expand All @@ -298,7 +301,10 @@ public function testEnsureSingleLanguage(): void
id: VersionId::published()
);

$version->create([]);
Data::write($this->contentFile(), [
'title' => 'Test'
]);

$this->assertTrue($version->ensure());
}

Expand Down

0 comments on commit 6a9fcf0

Please sign in to comment.