mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Code cleanup.
This commit is contained in:
@@ -19,9 +19,9 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Api\Models\TransactionCurrency;
|
||||
|
||||
|
||||
use Faker\Factory;
|
||||
use Laravel\Passport\Passport;
|
||||
use Log;
|
||||
@@ -95,8 +95,6 @@ class StoreControllerTest extends TestCase
|
||||
$field = Field::createBasic('decimal_places', 'currency-dp');
|
||||
$fieldSet->addField($field);
|
||||
$configuration->addOptionalFieldSet('decimal_places', $fieldSet);
|
||||
|
||||
|
||||
return $configuration->generateAll();
|
||||
|
||||
}
|
||||
@@ -122,4 +120,4 @@ class StoreControllerTest extends TestCase
|
||||
$this->assertPOST($address, $submission);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -19,9 +19,9 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Api\Models\TransactionCurrency;
|
||||
|
||||
|
||||
use Faker\Factory;
|
||||
use Laravel\Passport\Passport;
|
||||
use Log;
|
||||
@@ -49,8 +49,6 @@ class UpdateControllerTest extends TestCase
|
||||
Passport::actingAs($this->user());
|
||||
Log::info(sprintf('Now in %s.', get_class($this)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @dataProvider updateDataProvider
|
||||
*/
|
||||
@@ -68,8 +66,6 @@ class UpdateControllerTest extends TestCase
|
||||
$route = route('api.v1.currencies.update', $submission['parameters']);
|
||||
$this->assertPUT($route, $submission);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@@ -109,12 +105,8 @@ class UpdateControllerTest extends TestCase
|
||||
$fieldSet->parameters = ['RMB'];
|
||||
$fieldSet->addField(Field::createBasic('symbol', 'random-new-currency-code'));
|
||||
$configuration->addOptionalFieldSet('code', $fieldSet);
|
||||
|
||||
|
||||
return $configuration->generateAll();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@@ -168,6 +160,4 @@ class UpdateControllerTest extends TestCase
|
||||
|
||||
return $set;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user