We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -111,38 +111,3 @@ |
||
111 | 111 | |
112 | 112 | // this is the part is why we must make this test run in separate process |
113 | 113 | $query = <<<'EOF' |
114 | - mutation { |
|
115 | - conflictingValidatorNamespaces(test: "123", test2: "1", test3: "4") |
|
116 | - } |
|
117 | - EOF; |
|
118 | - |
|
119 | - $response = static::query( |
|
120 | - $query, |
|
121 | - self::USER_RYAN, |
|
122 | - 'conflictingValidatorNamespaces' |
|
123 | - )->getResponse()->getContent(); |
|
124 | - |
|
125 | - $this->assertEquals('{"data":{"conflictingValidatorNamespaces":true}}', $response); |
|
126 | - // end part |
|
127 | - |
|
128 | - // Validate definition file |
|
129 | - /** @var string $definitionFile */ |
|
130 | - $definitionFile = file_get_contents($kernel->getCacheDir().'/overblog/graphql-bundle/__definitions__/MutationType.php'); |
|
131 | - |
|
132 | - $this->assertStringContainsString( |
|
133 | - 'use Symfony\Component\Validator\Constraints as SymfonyConstraints;', |
|
134 | - $definitionFile, |
|
135 | - 'Generated definition file should contain import of Symfony\Component\Validator\Constraints aliased as SymfonyConstraints' |
|
136 | - ); |
|
137 | - $this->assertStringNotContainsString( |
|
138 | - 'use '.Validator\CustomValidator1\Constraint::class, |
|
139 | - $definitionFile, |
|
140 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
141 | - ); |
|
142 | - $this->assertStringNotContainsString( |
|
143 | - 'use '.Validator\CustomValidator2\Constraint::class, |
|
144 | - $definitionFile, |
|
145 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
146 | - ); |
|
147 | - } |
|
148 | -} |
@@ -111,38 +111,3 @@ |
||
111 | 111 | |
112 | 112 | // this is the part is why we must make this test run in separate process |
113 | 113 | $query = <<<'EOF' |
114 | - mutation { |
|
115 | - conflictingValidatorNamespaces(test: "123", test2: "1", test3: "4") |
|
116 | - } |
|
117 | - EOF; |
|
118 | - |
|
119 | - $response = static::query( |
|
120 | - $query, |
|
121 | - self::USER_RYAN, |
|
122 | - 'conflictingValidatorNamespaces' |
|
123 | - )->getResponse()->getContent(); |
|
124 | - |
|
125 | - $this->assertEquals('{"data":{"conflictingValidatorNamespaces":true}}', $response); |
|
126 | - // end part |
|
127 | - |
|
128 | - // Validate definition file |
|
129 | - /** @var string $definitionFile */ |
|
130 | - $definitionFile = file_get_contents($kernel->getCacheDir().'/overblog/graphql-bundle/__definitions__/MutationType.php'); |
|
131 | - |
|
132 | - $this->assertStringContainsString( |
|
133 | - 'use Symfony\Component\Validator\Constraints as SymfonyConstraints;', |
|
134 | - $definitionFile, |
|
135 | - 'Generated definition file should contain import of Symfony\Component\Validator\Constraints aliased as SymfonyConstraints' |
|
136 | - ); |
|
137 | - $this->assertStringNotContainsString( |
|
138 | - 'use '.Validator\CustomValidator1\Constraint::class, |
|
139 | - $definitionFile, |
|
140 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
141 | - ); |
|
142 | - $this->assertStringNotContainsString( |
|
143 | - 'use '.Validator\CustomValidator2\Constraint::class, |
|
144 | - $definitionFile, |
|
145 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
146 | - ); |
|
147 | - } |
|
148 | -} |
@@ -111,38 +111,3 @@ |
||
111 | 111 | |
112 | 112 | // this is the part is why we must make this test run in separate process |
113 | 113 | $query = <<<'EOF' |
114 | - mutation { |
|
115 | - conflictingValidatorNamespaces(test: "123", test2: "1", test3: "4") |
|
116 | - } |
|
117 | - EOF; |
|
118 | - |
|
119 | - $response = static::query( |
|
120 | - $query, |
|
121 | - self::USER_RYAN, |
|
122 | - 'conflictingValidatorNamespaces' |
|
123 | - )->getResponse()->getContent(); |
|
124 | - |
|
125 | - $this->assertEquals('{"data":{"conflictingValidatorNamespaces":true}}', $response); |
|
126 | - // end part |
|
127 | - |
|
128 | - // Validate definition file |
|
129 | - /** @var string $definitionFile */ |
|
130 | - $definitionFile = file_get_contents($kernel->getCacheDir().'/overblog/graphql-bundle/__definitions__/MutationType.php'); |
|
131 | - |
|
132 | - $this->assertStringContainsString( |
|
133 | - 'use Symfony\Component\Validator\Constraints as SymfonyConstraints;', |
|
134 | - $definitionFile, |
|
135 | - 'Generated definition file should contain import of Symfony\Component\Validator\Constraints aliased as SymfonyConstraints' |
|
136 | - ); |
|
137 | - $this->assertStringNotContainsString( |
|
138 | - 'use '.Validator\CustomValidator1\Constraint::class, |
|
139 | - $definitionFile, |
|
140 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
141 | - ); |
|
142 | - $this->assertStringNotContainsString( |
|
143 | - 'use '.Validator\CustomValidator2\Constraint::class, |
|
144 | - $definitionFile, |
|
145 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
146 | - ); |
|
147 | - } |
|
148 | -} |
@@ -111,38 +111,3 @@ |
||
111 | 111 | |
112 | 112 | // this is the part is why we must make this test run in separate process |
113 | 113 | $query = <<<'EOF' |
114 | - mutation { |
|
115 | - conflictingValidatorNamespaces(test: "123", test2: "1", test3: "4") |
|
116 | - } |
|
117 | - EOF; |
|
118 | - |
|
119 | - $response = static::query( |
|
120 | - $query, |
|
121 | - self::USER_RYAN, |
|
122 | - 'conflictingValidatorNamespaces' |
|
123 | - )->getResponse()->getContent(); |
|
124 | - |
|
125 | - $this->assertEquals('{"data":{"conflictingValidatorNamespaces":true}}', $response); |
|
126 | - // end part |
|
127 | - |
|
128 | - // Validate definition file |
|
129 | - /** @var string $definitionFile */ |
|
130 | - $definitionFile = file_get_contents($kernel->getCacheDir().'/overblog/graphql-bundle/__definitions__/MutationType.php'); |
|
131 | - |
|
132 | - $this->assertStringContainsString( |
|
133 | - 'use Symfony\Component\Validator\Constraints as SymfonyConstraints;', |
|
134 | - $definitionFile, |
|
135 | - 'Generated definition file should contain import of Symfony\Component\Validator\Constraints aliased as SymfonyConstraints' |
|
136 | - ); |
|
137 | - $this->assertStringNotContainsString( |
|
138 | - 'use '.Validator\CustomValidator1\Constraint::class, |
|
139 | - $definitionFile, |
|
140 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
141 | - ); |
|
142 | - $this->assertStringNotContainsString( |
|
143 | - 'use '.Validator\CustomValidator2\Constraint::class, |
|
144 | - $definitionFile, |
|
145 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
146 | - ); |
|
147 | - } |
|
148 | -} |
@@ -111,38 +111,3 @@ |
||
111 | 111 | |
112 | 112 | // this is the part is why we must make this test run in separate process |
113 | 113 | $query = <<<'EOF' |
114 | - mutation { |
|
115 | - conflictingValidatorNamespaces(test: "123", test2: "1", test3: "4") |
|
116 | - } |
|
117 | - EOF; |
|
118 | - |
|
119 | - $response = static::query( |
|
120 | - $query, |
|
121 | - self::USER_RYAN, |
|
122 | - 'conflictingValidatorNamespaces' |
|
123 | - )->getResponse()->getContent(); |
|
124 | - |
|
125 | - $this->assertEquals('{"data":{"conflictingValidatorNamespaces":true}}', $response); |
|
126 | - // end part |
|
127 | - |
|
128 | - // Validate definition file |
|
129 | - /** @var string $definitionFile */ |
|
130 | - $definitionFile = file_get_contents($kernel->getCacheDir().'/overblog/graphql-bundle/__definitions__/MutationType.php'); |
|
131 | - |
|
132 | - $this->assertStringContainsString( |
|
133 | - 'use Symfony\Component\Validator\Constraints as SymfonyConstraints;', |
|
134 | - $definitionFile, |
|
135 | - 'Generated definition file should contain import of Symfony\Component\Validator\Constraints aliased as SymfonyConstraints' |
|
136 | - ); |
|
137 | - $this->assertStringNotContainsString( |
|
138 | - 'use '.Validator\CustomValidator1\Constraint::class, |
|
139 | - $definitionFile, |
|
140 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
141 | - ); |
|
142 | - $this->assertStringNotContainsString( |
|
143 | - 'use '.Validator\CustomValidator2\Constraint::class, |
|
144 | - $definitionFile, |
|
145 | - 'Generated definition file should not contain imports of custom constraints, FQCN should be used instead' |
|
146 | - ); |
|
147 | - } |
|
148 | -} |