Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testBuild() |
||
14 | { |
||
15 | $type = new TestType($this->getRegistry()); |
||
16 | $obj = new TestObject('bar'); |
||
17 | $mockResolveInfo = $this->createMock(ResolveInfo::class); |
||
18 | |||
19 | $result = $type->getField('customField')->resolve($obj, ['param' => 'foo'], $mockResolveInfo); |
||
20 | |||
21 | $this->assertSame('barfoo', $result); |
||
22 | } |
||
23 | } |
||
24 |