Spelling mistakes for tests
This commit is contained in:
parent
e2dc0638d9
commit
78b40a8055
|
@ -124,7 +124,7 @@ class BulkPowerActionCommandTest extends CommandTestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that validation occurrs correctly.
|
* Test that validation occurs correctly.
|
||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
*
|
*
|
||||||
|
|
|
@ -79,7 +79,7 @@ class RemoteRequestControllerTest extends ControllerTestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that the controller properly handles an exception thrown by the daemon conneciton.
|
* Test that the controller properly handles an exception thrown by the daemon connection.
|
||||||
*/
|
*/
|
||||||
public function testExceptionThrownByDaemonConnectionIsHandledByDisplayController()
|
public function testExceptionThrownByDaemonConnectionIsHandledByDisplayController()
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class RemoteRequestControllerTest extends ControllerTestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that the controller properly handles an exception thrown by the daemon conneciton.
|
* Test that the controller properly handles an exception thrown by the daemon connection.
|
||||||
*/
|
*/
|
||||||
public function testExceptionThrownByDaemonConnectionIsHandledByStoreController()
|
public function testExceptionThrownByDaemonConnectionIsHandledByStoreController()
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,7 +36,7 @@ class AuthenticateIPAccessTest extends MiddlewareTestCase
|
||||||
/**
|
/**
|
||||||
* Test that a CIDR range can be used.
|
* Test that a CIDR range can be used.
|
||||||
*/
|
*/
|
||||||
public function testValidIPAganistCIDRRange()
|
public function testValidIPAgainstCIDRRange()
|
||||||
{
|
{
|
||||||
$model = factory(ApiKey::class)->make(['allowed_ips' => '["192.168.1.1/28"]']);
|
$model = factory(ApiKey::class)->make(['allowed_ips' => '["192.168.1.1/28"]']);
|
||||||
$this->setRequestAttribute('api_key', $model);
|
$this->setRequestAttribute('api_key', $model);
|
||||||
|
|
|
@ -59,7 +59,7 @@ class AuthenticateKeyTest extends MiddlewareTestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that an invalid API identifer throws an exception.
|
* Test that an invalid API identifier throws an exception.
|
||||||
*
|
*
|
||||||
* @expectedException \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
|
* @expectedException \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -103,7 +103,7 @@ class RunTaskJobTest extends TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test commmand action passed to job.
|
* Test command action passed to job.
|
||||||
*/
|
*/
|
||||||
public function testCommandAction()
|
public function testCommandAction()
|
||||||
{
|
{
|
||||||
|
|
|
@ -103,7 +103,7 @@ class AssignmentServiceTest extends TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test a non-CIRD IP address with a single port and an alias.
|
* Test a non-CIDR IP address with a single port and an alias.
|
||||||
*/
|
*/
|
||||||
public function testIndividualIPAddressWithAlias()
|
public function testIndividualIPAddressWithAlias()
|
||||||
{
|
{
|
||||||
|
|
|
@ -153,7 +153,7 @@ class SoftwareVersionServiceTest extends TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide data for testing booklean response for daemon version.
|
* Provide data for testing boolean response for daemon version.
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -149,7 +149,7 @@ class TaskCreationServiceTest extends TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that exceptions are thrown if the Scheudle module or ID is invalid.
|
* Test that exceptions are thrown if the Schedule module or ID is invalid.
|
||||||
*
|
*
|
||||||
* @dataProvider invalidScheduleArgumentProvider
|
* @dataProvider invalidScheduleArgumentProvider
|
||||||
* @expectedException \InvalidArgumentException
|
* @expectedException \InvalidArgumentException
|
||||||
|
|
|
@ -36,7 +36,7 @@ class EnvironmentServiceTest extends TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that set environment key stores the key into a retreviable array.
|
* Test that set environment key stores the key into a retrievable array.
|
||||||
*/
|
*/
|
||||||
public function testSettingEnvironmentKeyPersistsItInArray()
|
public function testSettingEnvironmentKeyPersistsItInArray()
|
||||||
{
|
{
|
||||||
|
@ -92,7 +92,7 @@ class EnvironmentServiceTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* Test that duplicate variables provided in config override the defaults.
|
* Test that duplicate variables provided in config override the defaults.
|
||||||
*/
|
*/
|
||||||
public function testProcessShouldAllowOverwritingVaraiblesWithConfigurationFile()
|
public function testProcessShouldAllowOverwritingVariablesWithConfigurationFile()
|
||||||
{
|
{
|
||||||
$model = $this->getServerModel();
|
$model = $this->getServerModel();
|
||||||
$this->repository->shouldReceive('getVariablesWithValues')->with($model->id)->once()->andReturn([]);
|
$this->repository->shouldReceive('getVariablesWithValues')->with($model->id)->once()->andReturn([]);
|
||||||
|
|
Loading…
Reference in New Issue