From 0ab4a4f05393dd10b44471101288548d5ba8a7e2 Mon Sep 17 00:00:00 2001 From: Victor Gonzalex Date: Wed, 18 Mar 2020 07:59:34 -0400 Subject: [PATCH] change tests name to be unique for remote test --- tests/Unit/UpdaterRemoteTest.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/Unit/UpdaterRemoteTest.php b/tests/Unit/UpdaterRemoteTest.php index f27ebb1..a6c9186 100644 --- a/tests/Unit/UpdaterRemoteTest.php +++ b/tests/Unit/UpdaterRemoteTest.php @@ -26,9 +26,9 @@ class UpdaterRemoteTest extends TestCase } /** @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(); @@ -38,7 +38,7 @@ class UpdaterRemoteTest extends TestCase } /** @test */ - public function it_can_default_to_configuration() + public function it_can_default_to_configuration_in_remote() { config()->set('data-sync.path', 'test-data'); @@ -52,7 +52,7 @@ class UpdaterRemoteTest extends TestCase } /** @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'); (new UpdaterFake(null, null, true, 's3'))->run(); @@ -66,7 +66,7 @@ class UpdaterRemoteTest extends TestCase } /** @test */ - public function it_can_update_the_relationship() + public function it_can_update_the_relationship_in_remote() { $supervisor = Supervisor::create([ 'name' => 'CEO', @@ -95,7 +95,7 @@ class UpdaterRemoteTest extends TestCase } /** @test */ - public function invalid_json_throws_an_exception() + public function invalid_json_throws_an_exception_in_remote() { try { $updater = new UpdaterFake('test-data/invalid-json', null, true, 's3'); @@ -108,7 +108,7 @@ class UpdaterRemoteTest extends TestCase } /** @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 { $updater = new UpdaterFake('test-data/no-criteria', null, true, 's3'); @@ -121,7 +121,7 @@ class UpdaterRemoteTest extends TestCase } /** @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', [ 'Supervisor', @@ -136,7 +136,7 @@ class UpdaterRemoteTest extends TestCase } /** @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', [ 'Roles', @@ -150,9 +150,9 @@ class UpdaterRemoteTest extends TestCase } /** @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(); $this->assertDatabaseMissing('roles', ['slug' => 'update-student-records']);