Commit Graph

140 Commits

Author SHA1 Message Date
Maarten van Middelaar
56bac0cffd Add fixtures in Yii2 module (#182)
To be able to follow the instruction on https://www.yiiframework.com/doc/guide/2.0/en/test-fixtures `$I->grabFixture()` we need to enable the fixtures feature of the Yii2. Methinks this would be a good thing to enable by default.
2018-05-24 02:53:00 +05:00
Aleksandar Belic
a31ee4418a Removing unused classes from unit test models. (#162) 2017-12-11 18:59:34 +03:00
Bulat Damdinov
c49a8554e8 Minor fixes of test files (#139) [skip ci] 2017-09-12 12:29:58 +03:00
Bulat Damdinov
d965cf55ac Using require as a statement (#140) 2017-09-12 11:16:50 +02:00
SilverFire - Dmitry Naumenko
4dc90946e9 Call require as statment. Closes #123 2017-08-07 23:46:37 +03:00
Nikolay Oleynikov
435508328b Create a .gitkeep file in the test data directory (#113) 2017-03-25 17:18:11 +03:00
Robert Korulczyk
2e12823e83 Fix codeception tests (#94) 2016-11-01 23:03:33 +03:00
Alexander Makarov
71b41b80bb Fixed yaml 2016-11-01 20:38:25 +03:00
Gintautas Miselis
fbb43d45bd Disable Yii2 cleanup in functional test suite (#93)
Because it is on by default since Codeception 2.2.6 and it breaks builds of Codeception
2016-11-01 20:16:18 +03:00
Елисеев Дмитрий
3971d0bb3a Fixed acceptance HomeCest (#91) 2016-10-19 16:42:29 +03:00
Michael Bodnarchuk
a322cdb0a5 Use URL helper in acceptance tests (#80)
Routing should be handled by URL helper
2016-08-04 14:32:04 +03:00
Dmitry Kulikov
c0ec50d6a5 Fixed paths in tests/bin/yii. Fixed typo in docs. (#76) 2016-07-27 12:05:48 +03:00
Alexander Makarov
d7df546502 Fixed version constraints, adjusted readme, fixed formatting 2016-07-25 23:41:30 +03:00
Davert
7154b917fd fixed travis config 2016-07-25 02:20:45 +03:00
Davert
b7526436aa added email verification for unit and functional tests 2016-07-19 03:53:55 +03:00
Davert
95bd8f4409 added tests for amLoggedIn method 2016-07-18 20:33:45 +03:00
Davert
37c9dfcfd8 removed test key from config, removed generated actions traits 2016-07-16 04:30:11 +03:00
Davert
0ef627f7de refactored tests 2016-07-16 04:13:51 +03:00
Davert
4f8f207a6d Merge branch 'refactorin' 2016-07-14 21:03:37 +03:00
Davert
b1015559e0 refactoring 2016-07-14 21:03:28 +03:00
Maxim Shcherbakov
aaee0841e1 Acceptance tests refactoring (#1) 2016-07-14 18:20:28 +02:00
Oleg Kostiushko
75a273eb40 Acceptance test refactoring - Contact form (#2)
* directory _support should exists before build with ignore inside

* added test for contact page availability

* added test for empty contact form submit

* added test for submit contact form

* remove test contact page

* delete old contact page test

* test index-test instead index

* change stage description
2016-07-14 18:19:59 +02:00
Mohamed Cherif Bouchelaghem
6545745e88 configure Codeception::Scpecify to not deep clone properties by default (#57) 2016-07-11 14:43:55 +02:00
Alexander Makarov
e0954011ce Added "cd tests" as suggested in https://github.com/yiisoft/yii2-app-basic/issues/63#issuecomment-230354273 2016-07-05 01:17:16 +03:00
Alexander Makarov
d579eb6434 Changed php -S to ./yii serve in tests readme 2016-07-02 20:22:42 +03:00
Alexander Makarov
e6cdaa5a1a Fixed test to mock form properly 2016-07-02 20:13:40 +03:00
Alexander Makarov
c200693b05 Fixes #62: Changed usage of deprecated getMock() to current createMock() 2016-07-02 19:51:35 +03:00
Bulat Damdinov
dd0c43247f fixed link for AcceptanceTest Selenuim Webdriver 2016-05-24 18:14:58 +08:00
Edo Freriks
df2a935b32 #47, Typo fix address tests 2016-02-01 00:39:43 +01:00
Jason McCallister
b4f23d82f5 Update the command for Faker
Updates the syntax for the command to composer require yii2-faker.
2015-10-21 18:06:24 -07:00
Yasser Hassan
4e8ed67326 Modified default @tests value and updated READMEs. 2015-10-21 03:07:07 +02:00
Carsten Brandt
bea667efdc updated tests readme
close #4
2015-08-06 00:21:54 +02:00
alcaneo
e01b9d1cbd Missing directory separator in config file path
Ugly typo, my bad sorry
2015-08-04 10:49:22 +02:00
alcaneo
5598a50160 Add step to setup config file path in c3.php
Hi,

I've been struggling in making remote code coverage work and I finally figured out that the config file path was wrong.
I haven't seen any documentation telling to update that path (weird).

Furthermore, it is kind of impossible to debug as it generates a corrupted tar file (because of the error generated by the wrong config file path probably) that ends up by having an non-related error message (like "unable to decompress gzipped phar archive").

There is another way to do it, by setting the env var HTTP_X_CODECEPTION_CODECOVERAGE_CONFIG but, even though I don't like changing manually c3.php, I still prefer that than using env var as it wouldn't be linked anymore with your project but with your environment (that can be shared with other projects) settings.
And I don't know if it would be possible that codeception set this var (as it actually knows the path) to make it available to c3.php, in fact I haven't seen anything setting this var up in codeception code.

Cheers,
Nico
2015-08-04 10:18:35 +02:00
Carsten Brandt
734f8b419d removed duplicate declares
these are now defined automatically by console application if needed.

see https://github.com/yiisoft/yii2/issues/6853
2015-07-11 18:05:41 +02:00
Evgeniy Tkachenko
ff0a3944bf Update config.php 2015-05-13 14:14:06 +03:00
Carsten Brandt
9954bb3b51 be more clear about migrations 2015-05-10 01:17:26 +02:00
Carsten Brandt
a8719e2ef3 Update README.md
fixed markdown to display steps correctly.
2015-05-10 01:01:36 +02:00
githubjeka
cea040a7cd To fix break test 2015-01-29 15:20:45 +03:00
Evgeniy Tkachenko
d0d066faad Move fixture configuration in config file 2015-01-29 14:49:12 +03:00
Evgeniy Tkachenko
d59a57c383 Fix undefined variable $scenario in test files. 2015-01-29 09:34:42 +03:00
Alexander Makarov
8bcb38960f Fixes #6624: Added delays to acceptance tests in order to make Selenium run more reliable 2014-12-26 23:18:52 +03:00
Mark Ragazzo
aef33fd969 fixed docs 2014-12-10 23:01:08 +04:00
Mark Ragazzo
aa583103a6 doc fix 2014-12-10 22:46:53 +04:00
Mark Ragazzo
c662755199 added code coverage ti yii2_basic 2014-12-10 22:44:27 +04:00
Anton Andersen
6b4ad97e43 Fixes #6103: Improved codeception config in app templates to ease testing of advanced app on multiple hosts 2014-11-27 14:02:04 +03:00
Mark Ragazzo
995c79103d fixed fixture controller config for applications 2014-11-07 23:20:03 +04:00
Alexander Makarov
c6908c8b43 Fixes #4827: default config for functional tests of both basic and advanced app now turns off CSRF validation while providing commented out alternative setting cookie domain to localhost 2014-10-28 02:03:02 +03:00
Alexander Makarov
e8aed03f1a Fixed entry script name 2014-10-18 19:31:39 +04:00
Alexander Makarov
58842e3a24 Used aliases for fixture directory definitions 2014-08-26 01:51:58 +04:00