158b5326fb
Fix #332 - Add a MoneyHelper class, with a unit test - Alias MoneyHelper to be available in global namespace in templates - Remove hardcoded '$' from translation files - Modify templates to use MoneyHelper to format debt and gift amounts - Fix Tests\TestCase constructor to accept arguments of original implementation
25 lines
494 B
PHP
25 lines
494 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Faker\Factory;
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
|
|
abstract class TestCase extends BaseTestCase
|
|
{
|
|
use CreatesApplication;
|
|
|
|
public $faker;
|
|
|
|
/**
|
|
* TestCase constructor.
|
|
*/
|
|
public function __construct($name = null, array $data = [], $dataName = '')
|
|
{
|
|
parent::__construct($name, $data, $dataName);
|
|
|
|
// Makes a Faker Factory available to all tests.
|
|
$this->faker = Factory::create();
|
|
}
|
|
}
|