You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
351 B

2 years ago
  1. <?php
  2. namespace Tests\iLaravel;
  3. use Tests\Bootstrap;
  4. class SettingTest extends Bootstrap
  5. {
  6. /**
  7. * @test
  8. */
  9. function load_setting_from_json_file() {
  10. $jsonContent = json_decode(file_get_contents(base_path('settings.json')));
  11. $this->assertTrue( json_encode($jsonContent) === json_encode(app()->settings));
  12. }
  13. }