Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function RegistrarCorrectamente(ApiTester $I) //200
- {
- DB::beginTransaction();
- try{
- $I->wantTo('Registrarse correctamente');
- $I->sendPOST($this->url, [
- 'email' => 'tester123@gmail.com',
- 'first_name' => 'Prueba4',
- 'last_name' => 'Probador',
- 'community_id' => 2,
- ]);
- $I->seeInDatabase('app.users_x_communities', array('email' => 'tester123@gmail.com'));
- $I->seeInDatabase('app.users', array('first_name' => 'Prueba4'));
- /*$this->checkResponseCode($I, HttpCode::OK);*/
- $I->seeResponseIsJson();
- $I->seeResponseContainsJson(array(
- 'estado' => true,
- ));
- DB::commit();
- }
- catch(Exception $e) {
- DB::commit();
- }
- }
- class_name: ApiTester
- modules:
- enabled:
- - HelperApi
- - Asserts
- - Laravel5
- - Db
- - REST:
- url: http://localhost:8000/api/
- depends: Laravel5
- config:
- Laravel5:
- environment_file: .env.testing
- actor: Tester
- paths:
- tests: tests
- log: tests/_output
- data: tests/_data
- support: tests/_support
- envs: tests/_envs
- settings:
- bootstrap: _bootstrap.php
- colors: false
- memory_limit: 1024M
- extensions:
- enabled:
- - CodeceptionExtensionRunFailed
- modules:
- config:
- Db:
- dsn: 'pgsql:host=localhost;port=5432;dbname=movers'
- user: 'postgres'
- password: '1234'
- APP_ENV=testing
- APP_KEY=base64:WRVmtVKixE3/MQ5bcDA3rrEaYqCavwaoleuRkcZtc4w=
- APP_DEBUG=true
- APP_LOG_LEVEL=debug
- APP_URL=http://localhost
- DB_CONNECTION=pgsql
- DB_HOST=127.0.0.1
- DB_PORT=5432
- DB_DATABASE=movers
- DB_USERNAME=postgres
- DB_PASSWORD=1234
- API_VERSION=v1
- API_NAME="Movers API"
- API_PREFIX=api
- API_STANDARDS_TREE=vnd
- API_SUBTYPE=movers
- API_DEBUG=true
- CACHE_DRIVER=file
- SESSION_DRIVER=file
- QUEUE_DRIVER=sync
- REDIS_HOST=127.0.0.1
- REDIS_PASSWORD=null
- REDIS_PORT=6379
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement