mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-01-26 11:44:11 +00:00
change tests name to be unique for remote test
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user