Commit Graph

41 Commits

Author SHA1 Message Date
Carsten Brandt
3bdb6c3110 fixed indentation in test files 2013-05-11 12:54:13 +02:00
Carsten Brandt
e0ad712527 Merge pull request #204 branch 'unittest-app-dependency' of https://github.com/bwoester/yii2 into bwoester-unittest-app-dependency
* 'unittest-app-dependency' of https://github.com/bwoester/yii2:
  mod: incorporate suggestions - rename requireApp() to mockApplication() - always destroy app on tearDown()   - eliminates need for constant YII_DESTROY_APP_ON_TEARDOWN   - mockApplication() becomes a lot easier. Destroying app on each tearDown     means creating it on every call is fine. No more checking if it already     exists and if it has been created from the same config. - \yii::$app should have been \Yii::$app
  add: new key for unit tests config named "className". Allows to run the tests      using different Application instances (consoleApp/ webApp) mod: TestCase::getParam accepts second param $default=null
  mod: don't create app in bootstrap script, unit tests do it themselves add: option to destroy app after each test to find unit tests that fail      to require an app
  allow unit tests to requireApp() on setUp()

Conflicts:
	tests/unit/data/config.php
2013-05-11 12:22:49 +02:00
resurtm
124b153350 Initial Gettext support. 2013-05-10 23:57:24 +06:00
Benjamin Wöster
c30ee60e9c add: new key for unit tests config named "className". Allows to run the tests
using different Application instances (consoleApp/ webApp)
mod: TestCase::getParam accepts second param $default=null
2013-05-09 22:06:58 +02:00
Rusinov Maxim
d712605a71 Added and resolved Sqlite tests #15. 2013-05-09 23:12:18 +06:00
Qiang Xue
034d88e5e4 Fixes issue #134 2013-05-06 08:04:35 -04:00
Zander Baldwin
4be9e195c2 Add Newlines
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
Taufan Aditya
51de757140 Use travis as user instead root within DSN 2013-05-05 00:10:17 +07:00
Alexander Makarov
9923888637 More Model tests 2013-03-29 03:22:50 +04:00
Alexander Makarov
a72d2f536a Some tests for Model 2013-03-29 02:50:36 +04:00
Qiang Xue
4fdaab3560 updated file header. 2013-03-04 08:03:46 -05:00
Qiang Xue
abd3d827a2 refactoring. 2013-01-18 10:37:22 -05:00
Qiang Xue
b51d347465 Added count, average, sum, min, max, scalar methods to ActiveQuery.
Added support for scopes defined in AR classes.
2013-01-17 19:26:20 -05:00
Qiang Xue
5d90e6da80 removed scopes.
finished AR documentation.
2013-01-14 20:19:08 -05:00
Qiang Xue
3ca50f3043 clean up AR 2013-01-13 10:23:03 -05:00
Qiang Xue
46ab456f4e finished new AR. 2013-01-12 23:16:26 -05:00
Qiang Xue
c9b104f0a1 refactored AR relation. 2013-01-09 16:50:17 -05:00
Qiang Xue
8e05e6e62d changed copyright line. 2013-01-07 11:34:52 -05:00
Qiang Xue
8517ee9e50 reorganized DB classes. 2013-01-05 16:46:53 -05:00
Qiang Xue
30c52fad96 finished draft implementation of new AR. 2013-01-04 12:05:24 -05:00
Qiang Xue
4d049fd97c AR WIP 2013-01-04 08:46:55 -05:00
Qiang Xue
44af0aa97a AR wip 2012-12-22 16:25:14 -05:00
Qiang Xue
0bdceee0fd Merge branch 'master' of git.yiisoft.com:yii2
Conflicts:
	tests/unit/data/ar/Customer.php
2012-12-01 16:07:47 -05:00
Qiang Xue
377181a008 new AR WIP 2012-11-12 20:31:23 -05:00
Qiang Xue
d876da383e ... 2012-10-08 20:50:09 -04:00
Qiang Xue
8c26893992 Implemented new scope declaration syntax. 2012-08-09 22:27:42 -04:00
Alexander Makarov
85c0a3b355 Fixed scope issue in tests 2012-04-10 21:49:24 +02:00
Qiang Xue
e281b402b6 ... 2012-03-26 21:58:40 -04:00
Qiang Xue
df003215de ... 2012-03-13 23:35:34 -04:00
Qiang Xue
769a114d39 renamed groupBy and orderBy to be group and order. 2012-03-10 13:59:22 -05:00
Qiang Xue
a53acdf60d .... 2012-03-01 16:01:42 -05:00
Qiang Xue
37220ee8c6 ... 2012-02-10 14:17:43 -05:00
Qiang Xue
c5cdcab6c6 ... 2012-02-06 16:22:42 -05:00
Qiang Xue
376dd0d41e .. 2012-01-30 14:54:38 -05:00
Qiang Xue
2f37d09367 ... 2011-12-31 21:08:37 -05:00
Qiang Xue
4ba05468a0 ... 2011-12-25 18:57:54 -05:00
Qiang Xue
a9439e9038 ... 2011-12-25 11:21:30 -05:00
Qiang Xue
5357388d24 Merge branch 'master' of dev.yiisoft.com:yii2
Conflicts:
	framework/db/dao/Command.php
	framework/db/dao/Connection.php
	framework/db/dao/Query.php
	framework/db/dao/mysql/Schema.php
	tests/unit/data/config.php
	tests/unit/data/mysql.sql
	tests/unit/framework/db/dao/ConnectionTest.php
2011-10-04 10:00:45 -04:00
Qiang Xue
be87e1780c w 2011-10-04 09:22:26 -04:00
Qiang Xue
5f2f574381 w 2011-09-02 23:47:18 -04:00
Qiang Xue
f082c0eb9a w 2011-09-02 23:47:18 -04:00