Advertisement
Guest User

Untitled

a guest
Jan 17th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. actor: Tester
  2. paths:
  3. tests: tests_codecept
  4. log: tests_codecept/_output
  5. data: tests_codecept/_data
  6. support: tests_codecept/_support
  7. envs: tests_codecept/_envs
  8. settings:
  9. bootstrap: _bootstrap.php
  10. colors: false
  11. memory_limit: 1024M
  12. extensions:
  13. enabled:
  14. - CodeceptionExtensionRunFailed
  15. modules:
  16. config:
  17. Db:
  18. dsn: 'mysql:host=localhost;dbname=kartice_test'
  19. user: '*******'
  20. password: '*******'
  21. dump: tests_codecept/_data/dump.sql
  22. populate: true
  23. cleanup: true
  24. reconnect: true
  25.  
  26. class_name: FunctionalTester
  27. modules:
  28. enabled:
  29. # add framework module here
  30. - HelperFunctional
  31. - Asserts
  32. - Laravel5:
  33. environment_file: .env.testing
  34. - Db
  35.  
  36. public function provera_dodavanja_novog_klijenta(FunctionalTester $I)
  37. {
  38.  
  39. $this->authenticate($I);
  40.  
  41. $I->amOnPage('/kancelarija/komitenti/create');
  42. $I->see('Kreiranje novog komitenta');
  43. $I->fillField('input[name=komitent_code]', 'kom1');
  44. $I->fillField('input[name=komitent_name]', 'Komitent 1');
  45. $I->click('btnSave');
  46. $I->seeInDatabase('komitenti', ['code' => 'kom1', 'name' => 'Komitent 1']);
  47. $I->see('Komitent Komitent 1 je uspešno kreiran.');
  48.  
  49. }
  50.  
  51. Step I see in database "komitenti",{"code":"kom1","name":"Komitent 1"}
  52. Fail No matching records found for criteria {"code":"kom1","name":"Komitent 1"} in table komitenti
  53. Failed asserting that 0 is greater than 0.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement