Unverified Commit 2c02bb9a authored by alexpott's avatar alexpott

Issue #3123065 by jungle, daffie: Fix 'Drupal.NamingConventions.ValidClassName' coding standard

parent ea668bd2
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* *
* @group field * @group field
*/ */
class reEnableModuleFieldTest extends BrowserTestBase { class ReEnableModuleFieldTest extends BrowserTestBase {
use CronRunTrait; use CronRunTrait;
......
...@@ -158,6 +158,7 @@ ...@@ -158,6 +158,7 @@
<property name="checkClosures" value="true"/> <property name="checkClosures" value="true"/>
</properties> </properties>
</rule> </rule>
<rule ref="Drupal.NamingConventions.ValidClassName"/>
<rule ref="Generic.NamingConventions.ConstructorName"/> <rule ref="Generic.NamingConventions.ConstructorName"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/> <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.PHP.DeprecatedFunctions"/> <rule ref="Generic.PHP.DeprecatedFunctions"/>
......
...@@ -131,7 +131,7 @@ public function testSerialize() { ...@@ -131,7 +131,7 @@ public function testSerialize() {
* @preserveGlobalState disabled * @preserveGlobalState disabled
*/ */
public function testConstructor() { public function testConstructor() {
class_alias(testInterface::class, 'Symfony\Component\Config\Resource\ResourceInterface'); class_alias(TestInterface::class, 'Symfony\Component\Config\Resource\ResourceInterface');
$container = new ContainerBuilder(); $container = new ContainerBuilder();
$this->assertFalse($container->isTrackingResources()); $this->assertFalse($container->isTrackingResources());
} }
...@@ -143,5 +143,5 @@ class_alias(testInterface::class, 'Symfony\Component\Config\Resource\ResourceInt ...@@ -143,5 +143,5 @@ class_alias(testInterface::class, 'Symfony\Component\Config\Resource\ResourceInt
* *
* @see \Drupal\Tests\Core\DependencyInjection\ContainerBuilderTest::testConstructor() * @see \Drupal\Tests\Core\DependencyInjection\ContainerBuilderTest::testConstructor()
*/ */
interface testInterface { interface TestInterface {
} }
...@@ -141,7 +141,7 @@ public function testFindSitePath() { ...@@ -141,7 +141,7 @@ public function testFindSitePath() {
/** /**
* A fake autoloader for testing * A fake autoloader for testing
*/ */
class fakeAutoloader { class FakeAutoloader {
/** /**
* Registers this instance as an autoloader. * Registers this instance as an autoloader.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment