Skip to content

Commit eaed416

Browse files
committed
Update tests
1 parent 7b4f444 commit eaed416

File tree

12 files changed

+218
-386
lines changed

12 files changed

+218
-386
lines changed

tests/API/Repository/BaseTagsServiceTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,14 +1301,6 @@ public function testMergeTagsThrowsUnauthorizedException(): void
13011301
);
13021302
}
13031303

1304-
/**
1305-
* @covers \Netgen\TagsBundle\Core\Repository\TagsService::copySubtree
1306-
*/
1307-
public function testCopySubtree(): void
1308-
{
1309-
self::markTestIncomplete('@TODO: Implement test for copySubtree');
1310-
}
1311-
13121304
/**
13131305
* @covers \Netgen\TagsBundle\Core\Repository\TagsService::copySubtree
13141306
*/

tests/API/Repository/FieldType/TagsIntegrationTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function assertFieldDataLoadedCorrect(Field $field): void
102102
self::assertContainsEquals($this->getTag1(), $field->value->tags);
103103
}
104104

105-
public function provideInvalidCreationFieldData(): array
105+
public function provideInvalidCreationFieldData(): iterable
106106
{
107107
return [
108108
[
@@ -148,7 +148,7 @@ public function assertUpdatedFieldDataLoadedCorrect(Field $field): void
148148
self::assertContainsEquals($this->getTag3(), $field->value->tags);
149149
}
150150

151-
public function provideInvalidUpdateFieldData(): array
151+
public function provideInvalidUpdateFieldData(): iterable
152152
{
153153
return $this->provideInvalidCreationFieldData();
154154
}
@@ -164,7 +164,7 @@ public function assertCopiedFieldDataLoadedCorrectly(Field $field): void
164164
self::assertContainsEquals($this->getTag1(), $field->value->tags);
165165
}
166166

167-
public function provideToHashData(): array
167+
public function provideToHashData(): iterable
168168
{
169169
return [
170170
[
@@ -188,7 +188,7 @@ public function provideToHashData(): array
188188
];
189189
}
190190

191-
public function provideFromHashData(): array
191+
public function provideFromHashData(): iterable
192192
{
193193
return [
194194
[
@@ -212,15 +212,15 @@ public function provideFromHashData(): array
212212
];
213213
}
214214

215-
public function providerForTestIsEmptyValue(): array
215+
public function providerForTestIsEmptyValue(): iterable
216216
{
217217
return [
218218
[new TagsValue()],
219219
[new TagsValue([])],
220220
];
221221
}
222222

223-
public function providerForTestIsNotEmptyValue(): array
223+
public function providerForTestIsNotEmptyValue(): iterable
224224
{
225225
return [
226226
[

0 commit comments

Comments
 (0)