Issue #3161301 by jungle, bbrala, alexpott: Fix typo "existant" in Core

merge-requests/2/head
Alex Pott 2020-07-31 16:03:02 +01:00
parent 67ceb1be5c
commit aa4ea8ffae
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
4 changed files with 14 additions and 15 deletions

View File

@ -581,7 +581,6 @@ evenodd
eventhandler eventhandler
exampleurl exampleurl
exdep exdep
existant
exitcode exitcode
expirable expirable
extlink extlink

View File

@ -405,15 +405,15 @@ class RowTest extends UnitTestCase {
'destination_value_3', 'destination_value_3',
], ],
], ],
'Mix of keys including non-existant' => [ 'Mix of keys including non-existent' => [
'keys' => [ 'keys' => [
'shared_key_1', 'shared_key_1',
'@shared_key_1', '@shared_key_1',
'@@shared_key_2', '@@shared_key_2',
'@@@shared_key_2', '@@@shared_key_2',
'@@@@@@@@@shared_key_3', '@@@@@@@@@shared_key_3',
'non_existant_source_key', 'non_existent_source_key',
'@non_existant_destination_key', '@non_existent_destination_key',
], ],
'values' => [ 'values' => [
'source_shared_value_1', 'source_shared_value_1',

View File

@ -254,7 +254,7 @@ class ContainerTest extends TestCase {
* @covers ::getAlternatives * @covers ::getAlternatives
* @covers ::getServiceAlternatives * @covers ::getServiceAlternatives
*/ */
public function testGetForNonExistantService() { public function testGetForNonExistentService() {
$this->expectException(ServiceNotFoundException::class); $this->expectException(ServiceNotFoundException::class);
$this->container->get('service_not_exists'); $this->container->get('service_not_exists');
} }
@ -286,7 +286,7 @@ class ContainerTest extends TestCase {
* @covers ::createService * @covers ::createService
* @covers ::resolveServicesAndParameters * @covers ::resolveServicesAndParameters
*/ */
public function testGetForNonExistantParameterDependency() { public function testGetForNonExistentParameterDependency() {
$service = $this->container->get('service_parameter_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE); $service = $this->container->get('service_parameter_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE);
$this->assertNull($service, 'Service is NULL.'); $this->assertNull($service, 'Service is NULL.');
} }
@ -315,7 +315,7 @@ class ContainerTest extends TestCase {
* @covers ::createService * @covers ::createService
* @covers ::resolveServicesAndParameters * @covers ::resolveServicesAndParameters
*/ */
public function testGetForNonExistantParameterDependencyWithException() { public function testGetForNonExistentParameterDependencyWithException() {
$this->expectException(InvalidArgumentException::class); $this->expectException(InvalidArgumentException::class);
$this->container->get('service_parameter_not_exists'); $this->container->get('service_parameter_not_exists');
} }
@ -327,7 +327,7 @@ class ContainerTest extends TestCase {
* @covers ::createService * @covers ::createService
* @covers ::resolveServicesAndParameters * @covers ::resolveServicesAndParameters
*/ */
public function testGetForNonExistantServiceDependency() { public function testGetForNonExistentServiceDependency() {
$service = $this->container->get('service_dependency_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE); $service = $this->container->get('service_dependency_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE);
$this->assertNull($service, 'Service is NULL.'); $this->assertNull($service, 'Service is NULL.');
} }
@ -340,7 +340,7 @@ class ContainerTest extends TestCase {
* @covers ::resolveServicesAndParameters * @covers ::resolveServicesAndParameters
* @covers ::getAlternatives * @covers ::getAlternatives
*/ */
public function testGetForNonExistantServiceDependencyWithException() { public function testGetForNonExistentServiceDependencyWithException() {
$this->expectException(ServiceNotFoundException::class); $this->expectException(ServiceNotFoundException::class);
$this->container->get('service_dependency_not_exists'); $this->container->get('service_dependency_not_exists');
} }
@ -351,7 +351,7 @@ class ContainerTest extends TestCase {
* @covers ::get * @covers ::get
* @covers ::createService * @covers ::createService
*/ */
public function testGetForNonExistantServiceWhenUsingNull() { public function testGetForNonExistentServiceWhenUsingNull() {
$this->assertNull($this->container->get('service_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE), 'Not found service does not throw exception.'); $this->assertNull($this->container->get('service_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE), 'Not found service does not throw exception.');
} }
@ -360,7 +360,7 @@ class ContainerTest extends TestCase {
* @covers ::get * @covers ::get
* @covers ::createService * @covers ::createService
*/ */
public function testGetForNonExistantNULLService() { public function testGetForNonExistentNULLService() {
$this->expectException(ServiceNotFoundException::class); $this->expectException(ServiceNotFoundException::class);
$this->container->get(NULL); $this->container->get(NULL);
} }
@ -371,7 +371,7 @@ class ContainerTest extends TestCase {
* @covers ::get * @covers ::get
* @covers ::createService * @covers ::createService
*/ */
public function testGetForNonExistantServiceMultipleTimes() { public function testGetForNonExistentServiceMultipleTimes() {
$container = new $this->containerClass(); $container = new $this->containerClass();
$this->assertNull($container->get('service_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE), 'Not found service does not throw exception.'); $this->assertNull($container->get('service_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE), 'Not found service does not throw exception.');
@ -385,7 +385,7 @@ class ContainerTest extends TestCase {
* @covers ::createService * @covers ::createService
* @covers ::getAlternatives * @covers ::getAlternatives
*/ */
public function testGetForNonExistantServiceWithExceptionOnSecondCall() { public function testGetForNonExistentServiceWithExceptionOnSecondCall() {
$this->assertNull($this->container->get('service_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE), 'Not found service does nto throw exception.'); $this->assertNull($this->container->get('service_not_exists', ContainerInterface::NULL_ON_INVALID_REFERENCE), 'Not found service does nto throw exception.');
$this->expectException(ServiceNotFoundException::class); $this->expectException(ServiceNotFoundException::class);
$this->container->get('service_not_exists'); $this->container->get('service_not_exists');

View File

@ -100,7 +100,7 @@ class HookDiscoveryTest extends UnitTestCase {
] ]
)); ));
$this->assertNull($this->hookDiscovery->getDefinition('test_non_existant', FALSE)); $this->assertNull($this->hookDiscovery->getDefinition('test_non_existent', FALSE));
$plugin_definition = $this->hookDiscovery->getDefinition('test_id_1'); $plugin_definition = $this->hookDiscovery->getDefinition('test_id_1');
$this->assertEquals($plugin_definition['class'], 'Drupal\plugin_test\Plugin\plugin_test\fruit\Apple'); $this->assertEquals($plugin_definition['class'], 'Drupal\plugin_test\Plugin\plugin_test\fruit\Apple');
@ -126,7 +126,7 @@ class HookDiscoveryTest extends UnitTestCase {
->will($this->returnValue([])); ->will($this->returnValue([]));
$this->expectException(PluginNotFoundException::class); $this->expectException(PluginNotFoundException::class);
$this->hookDiscovery->getDefinition('test_non_existant', TRUE); $this->hookDiscovery->getDefinition('test_non_existent', TRUE);
} }
protected function hookDiscoveryTestTestPlugin() { protected function hookDiscoveryTestTestPlugin() {