tom-- / yii2-dynamic-ar

An extension to add NoSQL-like documents to Yii 2 Framework's Active Record ORM.
ISC License
57 stars 15 forks source link

fisture errors in yii db tests? #20

Closed tom-- closed 7 years ago

tom-- commented 7 years ago
PHPUnit 4.8.34 by Sebastian Bergmann and contributors.

...............................................................  63 / 176 ( 35%)
.................................I............................. 126 / 176 ( 71%)
.......................E.E.E......................

Time: 21.23 seconds, Memory: 10.00MB

There were 3 errors:

1) tests\unit\DynamicActiveRecordTest::testPopulateRecordCallWhenQueryingOnParentClass
yii\base\InvalidConfigException: The table does not exist: animal

/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/ActiveRecord.php:299
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/ActiveRecord.php:330
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/BaseActiveRecord.php:461
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/BaseActiveRecord.php:303
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/tests/data/ar/Animal.php:31
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/base/Object.php:107
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/tests/framework/db/ActiveRecordTest.php:1118
/Volumes/Sites/dynamic-ar/vendor/phpunit/phpunit/phpunit:52

2) tests\unit\DynamicActiveRecordTest::testOptimisticLock
yii\base\InvalidConfigException: The table does not exist: {{%document}}

/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/ActiveRecord.php:299
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/ActiveRecord.php:320
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/ActiveRecord.php:176
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/BaseActiveRecord.php:107
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/tests/framework/db/ActiveRecordTest.php:1139
/Volumes/Sites/dynamic-ar/vendor/phpunit/phpunit/phpunit:52

3) tests\unit\DynamicActiveRecordTest::testBit
yii\base\InvalidConfigException: The table does not exist: {{%bit_values}}

/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/ActiveRecord.php:299
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/ActiveRecord.php:320
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/ActiveRecord.php:176
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/framework/db/BaseActiveRecord.php:107
/Volumes/Sites/dynamic-ar/vendor/yiisoft/yii2-dev/tests/framework/db/ActiveRecordTest.php:1240
/Volumes/Sites/dynamic-ar/vendor/phpunit/phpunit/phpunit:52

FAILURES!
Tests: 176, Assertions: 1146, Errors: 3, Incomplete: 1.