i have this code on \tests\unit\ReportTest.php :
class ReportTest extends \Codeception\TestCase\Test
{
protected function _before()
{
Auth::attempt(['email' => $this->valid_email, 'password' => $this->valid_password]);
}
protected function _after()
{
}
public function testMe()
{
$this->sendGet(route('index'));
$this->canSeeResponseCodeIs(200);
}
}
my problem was the method $this->sendGet()
and $this->canSeeResponseCodeIs()
was not undefined, im kind of new on using codeception so bear with me guys,
here is my unit.suite.yml
:
class_name: UnitTester
modules:
enabled:
- Asserts
- \Helper\Unit
- Laravel5
- REST:
depends: PhpBrowser
config:
Laravel5:
environment_file: .env
i want to use that REST module, but i cant get it to work.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire