Skip to content

Commit

Permalink
fix unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Philhil committed Oct 13, 2021
1 parent eefe3e4 commit e89d08c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.testing
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ impressum.phone="0049 152 00000000"
OFFER.DIENSTPLAN=true

#define if this is a demo instance
IS_DEMO=false
IS_DEMO=true
5 changes: 3 additions & 2 deletions tests/Feature/RouteCredentialsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ protected function tearDown(): void
*/
public function test_AllRoutesNoAuthAvailable()
{
//should be possible without any DB entry

Session::start();
$token = session('_token');

Expand Down Expand Up @@ -292,8 +294,7 @@ public function test_AllRoutesNoAuthAvailable()
public function test_AllRoutesAsUserAvailable()
{
//fill DB with demo data to act like a User
Artisan::call('demo:createDemoClient');
config(['IS_DEMO' => false]);
$this->artisan('demo:createDemoClient');

//session
Session::start();
Expand Down

0 comments on commit e89d08c

Please sign in to comment.