Skip to content

Commit cc7f010

Browse files
committed
Only Exclude those from test.
1 parent 22f8bad commit cc7f010

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

src/Models/Document/DocumentResolver.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,4 @@ public function createByClassName(string $className, int $parentId, array $data
2929

3030
return $className::create($parentId, $data, $save);
3131
}
32-
33-
public function setGetInheritedProperties(bool $getInheritedProperties): void
34-
{
35-
Document::setGetInheritedProperties($getInheritedProperties);
36-
}
37-
38-
public function getGetInheritedProperties(): bool
39-
{
40-
return Document::getGetInheritedProperties();
41-
}
4232
}

src/Models/Document/DocumentResolverInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,4 @@
2222
interface DocumentResolverInterface extends DocumentResolverContractInterface
2323
{
2424
public function createByClassName(string $className, int $parentId, array $data = [], bool $save = true): Document;
25-
26-
public function setGetInheritedProperties(bool $getInheritedProperties): void;
27-
28-
public function getGetInheritedProperties(): bool;
2925
}

tests/Unit/Models/Document/DocumentResolverTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
#[Group('contract')]
1212
class DocumentResolverTest extends ContractAbstractTest
1313
{
14-
public array $exludeMethodsForReturnTypeCheck = ['getByPath', 'getById', 'create'];
14+
public array $exludeMethodsForReturnTypeCheck = [
15+
'getByPath',
16+
'getById',
17+
'create',
18+
'setGetInheritedProperties',
19+
'getGetInheritedProperties'
20+
];
1521

1622
protected function getClassToTest(): string {
1723
return Document::class;

0 commit comments

Comments
 (0)