1- <?php
1+ <?php declare (strict_types= 1 );
22
33namespace Tests \Unit \Schema \Directives ;
44
@@ -35,7 +35,7 @@ public function testGetsModelClassFromDirective(): void
3535
3636 $ this ->assertSame (
3737 Team::class,
38- $ directive ->getModelClass ()
38+ $ directive ->getModelClass (),
3939 );
4040 }
4141
@@ -51,7 +51,7 @@ public function testDefaultsToFieldTypeForTheModelClass(): void
5151
5252 $ this ->assertSame (
5353 User::class,
54- $ directive ->getModelClass ()
54+ $ directive ->getModelClass (),
5555 );
5656 }
5757
@@ -69,7 +69,7 @@ public function testBuiltInTypeTolerated(): void
6969
7070 $ this ->assertSame (
7171 Team::class,
72- $ directive ->getModelClass ()
72+ $ directive ->getModelClass (),
7373 );
7474 }
7575
@@ -99,7 +99,7 @@ public function testResolvesAModelThatIsNamedLikeABaseClass(): void
9999
100100 $ this ->assertSame (
101101 Closure::class,
102- $ directive ->getModelClass ()
102+ $ directive ->getModelClass (),
103103 );
104104 }
105105
@@ -115,7 +115,7 @@ public function testPrefersThePrimaryModelNamespace(): void
115115
116116 $ this ->assertSame (
117117 Category::class,
118- $ directive ->getModelClass ()
118+ $ directive ->getModelClass (),
119119 );
120120 }
121121
@@ -131,7 +131,7 @@ public function testAllowsOverwritingTheDefaultModel(): void
131131
132132 $ this ->assertSame (
133133 CategorySecondary::class,
134- $ directive ->getModelClass ()
134+ $ directive ->getModelClass (),
135135 );
136136 }
137137
@@ -147,7 +147,7 @@ public function testResolvesFromTheSecondaryModelNamespace(): void
147147
148148 $ this ->assertSame (
149149 OnlyHere::class,
150- $ directive ->getModelClass ()
150+ $ directive ->getModelClass (),
151151 );
152152 }
153153
@@ -158,13 +158,13 @@ public function testGetsArgumentFromDirective(): void
158158 $ this ->assertSame (
159159 'argValue ' ,
160160 // @phpstan-ignore-next-line protected method is called via wrapper below
161- $ directive ->directiveArgValue ('argName ' )
161+ $ directive ->directiveArgValue ('argName ' ),
162162 );
163163
164164 $ this ->assertSame (
165165 'argValue2 ' ,
166166 // @phpstan-ignore-next-line protected method is called via wrapper below
167- $ directive ->directiveArgValue ('argName2 ' )
167+ $ directive ->directiveArgValue ('argName2 ' ),
168168 );
169169 }
170170
@@ -182,7 +182,7 @@ public function testMutuallyExclusive(): void
182182 $ directive = $ this ->constructFieldDirective ('foo: ID @dummy(bar: 1, baz: 2) ' );
183183
184184 $ this ->expectExceptionObject (
185- new DefinitionException ('The arguments [bar, baz, qux] for @base are mutually exclusive, found [bar, baz] on foo. ' )
185+ new DefinitionException ('The arguments [bar, baz, qux] for @base are mutually exclusive, found [bar, baz] on foo. ' ),
186186 );
187187 // @phpstan-ignore-next-line protected method is called via wrapper below
188188 $ directive ->validateMutuallyExclusiveArguments (['bar ' , 'baz ' , 'qux ' ]);
@@ -213,7 +213,7 @@ public function __call(string $method, array $args)
213213
214214 $ directive ->hydrate (
215215 $ fieldDefinition ->directives ->get (0 ),
216- $ fieldDefinition
216+ $ fieldDefinition,
217217 );
218218
219219 return $ directive ;
0 commit comments