Example #1
0
 /**
  * @depends getConfig
  *
  * @param \Step\Api\User $I
  */
 public function getBadConfig(\Step\Api\User $I)
 {
     $I->breakMyConfigFile();
     $I->am('an app');
     $I->wantTo('get the current Gallery configuration');
     $I->expectTo('receive an error message');
     $this->tryToGetAValidConfig($I);
     /**
      * Might be worth bringing the error object one level up
      */
     $I->seeResponseContainsJson(['features' => [['error' => ['message' => 'Problem while parsing the configuration file</br></br>Config location: /']]]]);
     $I->fixMyConfigFile();
 }