Commit Graph

222 Commits

Author SHA1 Message Date
Carsten Brandt
825258efb8 cubrid unit tests WIP 2013-09-05 18:23:25 +02:00
Carsten Brandt
e3df19d984 Redis AR WIP
- introduced RecordSchema class for schema definition
2013-08-26 19:29:55 +02:00
Carsten Brandt
82dc3b124c Merge branch 'master' into redis
* master: (131 commits)
  css fix.
  Finished model generator.
  more tests for FileHelper
  Added note about theme asset bundle to bootstrap widgets guide
  fixed typos in ArrayHelperBase phpdoc
  More tests for ArrayHelper and Inflector
  Fixed typo and code style
  Fixes #21: implemented jQueryUI Slider
  Fixes #790: added visible for Nav and Dropdown
  finished rule generation for model generator.
  bug fix of form generator.
  minor fixes of debugger.
  Added SafeValidator.
  fix dataProvider getSort()
  cleanup MemCache timeout API after #804
  Added failureCallback, reduced timeouts to 1s
  Mentioning that timeoutms is available in memcache only.
  set default format for gridview to text
  Removed extra line
  Added timeoutms parameter in MemCache
  ...

Conflicts:
	tests/unit/data/config.php
2013-08-26 18:10:06 +02:00
Suralc
06682d0ba9 coverage improvements 2013-08-24 00:31:01 +02:00
Suralc
24e2f88503 Renamed validator test models to be less specific. 2013-08-23 22:47:45 +02:00
Suralc
5c8927af7d Added ExistValidatorTest and added new option to DatabaseTestCase 2013-08-17 00:40:45 +02:00
Suralc
02c92fea93 Merge remote-tracking branch 'upstream/master' into add-tests 2013-08-13 19:03:10 +02:00
Suralc
bae79cd76c Added ValidatorTest 2013-08-13 19:01:53 +02:00
Alexander Makarov
0596fa82fd code style fixes 2013-08-13 02:43:47 +04:00
Carsten Brandt
133e5c6e35 Merge branch 'master' into redis
* master: (806 commits)
  avoid confusing docs about autoload return value
  doc fix.
  Fixed doc.
  Fixed autoloader behavior according to leading \
  Fix in RequestPanel
  changed to trace from info.
  Removed yii\debug\Module::enabled.
  minor enhancement of debugger.
  Refactored the basic app.
  Added ErrorAction.
  Use `hasAttribute()` instead to avoid code duplication
  refactored NavBar and basic app navbar.
  test break fix.
  test break fix.
  Fixed test breaks.
  #735: removed hiddenInput to avoid confusion.
  ResizableAsset typo fix!
  Update radio and checkbox due to e3801fbf6b
  css fix.
  Fixed the basic app template.
  ...

Conflicts:
	.travis.yml
	tests/unit/data/config.php
2013-08-12 00:45:37 +02:00
Suralc
a81480d309 Improved ValidatorTest organization. 2013-08-06 19:56:05 +02:00
Qiang Xue
3d5388ff2b Reorganized captcha code. 2013-08-03 07:20:39 -04:00
Qiang Xue
f14774dfb6 Fixes issue #276: Enable Response::sendFile() to operate on resources 2013-06-10 16:37:35 -04:00
gevik
f667b5785b - Added drop/add primary key methods to Command.php
- Added drop/add primary key methods to QueryBuilder.php
- Added mysql specific dropPrimarykey method
- Added sqlite specific dropPrimarykey and addPrimaryKey methods
- Added uint testing for dropPrimarykey and addPrimaryKey methods
- Corrected postgresql column types, by adding length and precision
2013-06-09 18:27:09 +02:00
gevik
b6d5a9002b Removed the config setting that should not have been commited. 2013-06-07 23:01:01 +02:00
Gevik Babakhani
0fd390cac5 Replaces spaces with tabs. 2013-06-06 21:19:17 +02:00
Gevik Babakhani
3d79d992c4 Merge remote branch 'upstream/master' into pgsql-driver 2013-06-05 11:35:38 +02:00
Carsten Brandt
e94cc6bb9e unit test for UrlManager RESTful routing syntax
removed test param 'appClass' as it does not make sense to configure
application class for all tests, some explicitly need webapp where
some might explicitly need console app.
2013-06-03 09:33:16 +02:00
Gevik Babakhani
18218c4132 Removed unused columns. 2013-06-01 12:37:47 +02:00
Gevik Babakhani
97270a389a Savepoint, implementing fkeys. 2013-05-31 14:25:56 +02:00
Gevik Babakhani
103621ad05 Savepoint: WIP implementing columns 2013-05-30 16:53:57 +02:00
Gevik Babakhani
4602b575ad Save point: WIP implementing db schema functionality. 2013-05-29 17:44:53 +02:00
Gevik Babakhani
c30eae62d2 Added initial unit testing files for the pgsql driver. 2013-05-29 00:01:02 +02:00
resurtm
8e1079cd04 MSSQL more tests. 2013-05-23 23:33:33 +06:00
resurtm
cdcb8e513c Merge upstream/master into upstream/mssql. 2013-05-22 19:28:11 +06:00
Carsten Brandt
3518813ac4 Merge branch 'master' into redis
* master: (108 commits)
  fixed indentation in test files
  cleanup tests
  Travis-CI build status.
  CS fixes.
  CS fixes.
  Change magic property to normal method. (Thanks to @maxlapko.)
  CS fixes.
  Fixed duplicated merge.
  Fixes issue #50: implemented pager widgets.
  fix: remove pointless unset
  remove fix for unset timezone from bootstrap app
  mod: don't use ArrayHelper to avoid loading another class during every request
  better have timezone fix in application
  Add exception classes hierarchy UML diagram.
  Initial Gettext support.
  RBAC sql files identation fix
  RBAC sql files
  DbManager some Db fields renaming
  DbManager code style fix + right Exception type fix
  Unit tests fix
  ...

Conflicts:
	tests/unit/framework/caching/ApcCacheTest.php
	tests/unit/framework/caching/CacheTest.php
2013-05-11 13:12:49 +02:00
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
5c101ae314 Initial MSSQL tests. 2013-05-11 14:58:35 +06: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
Carsten Brandt
f59f39087f Merge branch 'master' of github.com:yiisoft/yii2 into redis
* 'master' of github.com:yiisoft/yii2: (87 commits)
  Added dirty attribute description.
  Fixed doc about renderers.
  Finished the initial draft of upgrading instructions
  Fix attaching behavior via config
  Changed default value of View::renderers.
  Fix attaching behavior via config
  Menu WIP
  upgrading instructions WIP
  Refactored Breadcrumbs.
  Fixes issue #54: Implemented Breadcrumbs.
  Added Breadcrumbs.php
  Fixes issue #134
  Rollback word consistencty over entire codebase (ref. #139).
  Add ensureBehaviors() to detachBehavior*()
  Fixes issue #124.
  code reorganization fix.
  reorganized app code. removed app template from framework folder.
  Fixes issue #128.
  Fixes issue #124.
  Add Newlines
  ...

Conflicts:
	tests/unit/framework/caching/ApcCacheTest.php
2013-05-07 01:53:24 +02: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
Carsten Brandt
79982c9848 Redis Insert, Update, Delete and Find is ready and roughly unit tested
relations are not working yet
2013-04-24 18:33:11 +02:00
Carsten Brandt
f4ebd91cfb Merge branch 'master' into redis
* master: (117 commits)
  More Model tests
  Better validation rules validity check
  Some tests for Model
  A bit more friendly behavior for unsetting a model attribute
  User WIP.
  Fixed Model::getFirstErrors()
  Finished AccessControl.
  Finished HttpCache.
  User WIP
  line ending fix.
  refactoring cache and db references.
  Fixed session bug.
  Finishes flash feature.
  refactored url creation shortcut method.
  HttpCache WIP.
  Finished AccessControl and HttpCache.
  Finished PageCache.
  finished fragment caching.
  fragment cache WIP
  bug fixes.
  ...
2013-03-29 01:03:56 +01:00
Carsten Brandt
0d2f5028ef Finished Redis Connection class 2013-03-29 01:02:35 +01: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