change tests name to be unique for remote test

This commit is contained in:
Victor Gonzalex
2020-03-18 07:59:34 -04:00
parent 163be72b86
commit 0ab4a4f053

View File

@@ -26,9 +26,9 @@ class UpdaterRemoteTest extends TestCase
} }
/** @test */ /** @test */
public function it_adds_roles_to_the_database() public function it_adds_roles_to_the_database_in_remote()
{ {
$updater = new UpdaterFake('/test-data', 'roles', true, 's3'); $updater = new UpdaterFake('test-data', 'roles', true, 's3');
$updater->run(); $updater->run();
@@ -38,7 +38,7 @@ class UpdaterRemoteTest extends TestCase
} }
/** @test */ /** @test */
public function it_can_default_to_configuration() public function it_can_default_to_configuration_in_remote()
{ {
config()->set('data-sync.path', 'test-data'); config()->set('data-sync.path', 'test-data');
@@ -52,7 +52,7 @@ class UpdaterRemoteTest extends TestCase
} }
/** @test */ /** @test */
public function it_can_update_an_existing_record() public function it_can_update_an_existing_record_in_remote()
{ {
config()->set('data-sync.path', 'test-data'); config()->set('data-sync.path', 'test-data');
(new UpdaterFake(null, null, true, 's3'))->run(); (new UpdaterFake(null, null, true, 's3'))->run();
@@ -66,7 +66,7 @@ class UpdaterRemoteTest extends TestCase
} }
/** @test */ /** @test */
public function it_can_update_the_relationship() public function it_can_update_the_relationship_in_remote()
{ {
$supervisor = Supervisor::create([ $supervisor = Supervisor::create([
'name' => 'CEO', 'name' => 'CEO',
@@ -95,7 +95,7 @@ class UpdaterRemoteTest extends TestCase
} }
/** @test */ /** @test */
public function invalid_json_throws_an_exception() public function invalid_json_throws_an_exception_in_remote()
{ {
try { try {
$updater = new UpdaterFake('test-data/invalid-json', null, true, 's3'); $updater = new UpdaterFake('test-data/invalid-json', null, true, 's3');
@@ -108,7 +108,7 @@ class UpdaterRemoteTest extends TestCase
} }
/** @test */ /** @test */
public function the_json_must_contain_a_key_with_an_underscore() public function the_json_must_contain_a_key_with_an_underscore_in_remote()
{ {
try { try {
$updater = new UpdaterFake('test-data/no-criteria', null, true, 's3'); $updater = new UpdaterFake('test-data/no-criteria', null, true, 's3');
@@ -121,7 +121,7 @@ class UpdaterRemoteTest extends TestCase
} }
/** @test */ /** @test */
public function order_of_imports_can_be_defined_in_config() public function order_of_imports_can_be_defined_in_config_in_remote()
{ {
config()->set('data-sync.order', [ config()->set('data-sync.order', [
'Supervisor', 'Supervisor',
@@ -136,7 +136,7 @@ class UpdaterRemoteTest extends TestCase
} }
/** @test */ /** @test */
public function exception_is_thrown_if_imports_are_in_incorrect_order() public function exception_is_thrown_if_imports_are_in_incorrect_order_in_remote()
{ {
config()->set('data-sync.order', [ config()->set('data-sync.order', [
'Roles', 'Roles',
@@ -150,9 +150,9 @@ class UpdaterRemoteTest extends TestCase
} }
/** @test */ /** @test */
public function it_ignores_non_json_files() public function it_ignores_non_json_files_in_remote()
{ {
$updater = new UpdaterFake(__DIR__.'/../test-data/not-json'); $updater = new UpdaterFake('test-data/not-json', null, true, 's3');
$updater->run(); $updater->run();
$this->assertDatabaseMissing('roles', ['slug' => 'update-student-records']); $this->assertDatabaseMissing('roles', ['slug' => 'update-student-records']);