Files
monica/tests/TestCase.php
T
Rocco Palladino 158b5326fb Format monetary values with currency symbols consistently (#394)
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
2017-06-26 08:09:55 -04:00

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();
}
}