|
3 | 3 | namespace TheCodingMachine\FluidSchema; |
4 | 4 |
|
5 | 5 | use Doctrine\DBAL\Schema\Schema; |
6 | | -use Doctrine\DBAL\Types\Type; |
7 | 6 | use PHPUnit\Framework\TestCase; |
8 | 7 |
|
9 | 8 | class TdbmFluidColumnGraphqlOptionsTest extends TestCase |
@@ -43,19 +42,19 @@ public function testGraphql() |
43 | 42 | $column2 = $graphqlOptions->column('foo'); |
44 | 43 | $this->assertSame($column2, $column); |
45 | 44 |
|
46 | | - $this->assertContains('@TheCodingMachine\GraphQLite\Annotations\Type', $schema->getTable('posts')->getOptions()['comment']); |
| 45 | + $this->assertStringContainsString('@TheCodingMachine\GraphQLite\Annotations\Type', $schema->getTable('posts')->getOptions()['comment']); |
47 | 46 |
|
48 | 47 | $idColumn = $posts->id()->graphqlField(); |
49 | | - $this->assertContains('outputType = "ID"', $schema->getTable('posts')->getColumn('id')->getComment()); |
| 48 | + $this->assertStringContainsString('outputType = "ID"', $schema->getTable('posts')->getColumn('id')->getComment()); |
50 | 49 |
|
51 | 50 | $users = $fluid->table('users'); |
52 | 51 | $uuidColumn = $users->uuid()->graphqlField(); |
53 | | - $this->assertContains('outputType = "ID"', $schema->getTable('users')->getColumn('uuid')->getComment()); |
| 52 | + $this->assertStringContainsString('outputType = "ID"', $schema->getTable('users')->getColumn('uuid')->getComment()); |
54 | 53 |
|
55 | 54 | $products = $fluid->table('products'); |
56 | 55 | $graphqlField = $products->uuid() |
57 | 56 | ->column('user_id')->references('users')->graphqlField(); |
58 | | - $this->assertNotContains('outputType = "ID"', $schema->getTable('products')->getColumn('user_id')->getComment()); |
| 57 | + $this->assertStringNotContainsString('outputType = "ID"', $schema->getTable('products')->getColumn('user_id')->getComment()); |
59 | 58 |
|
60 | 59 | $this->assertSame('products', $graphqlField->then()->getDbalTable()->getName()); |
61 | 60 | } |
|
0 commit comments