yii2: Tests. Something wrong happened
What steps will reproduce the problem?
run PHPUnit test with this config (with fix #15244 /optional/ and #15246)
What is the expected result?
no F in output
What do you get instead?
Time: 18.63 minutes, Memory: 90.00MB
There were 7 failures:
1) yiiunit\framework\caching\DbCacheTest::testExpireAdd
Failed asserting that false is true.
/var/www/html/tests/framework/caching/DbCacheTest.php:98
/var/www/html/vendor/phpunit/phpunit/phpunit:52
2) yiiunit\framework\caching\DbCacheTest::testSet
Failed asserting that false is true.
/var/www/html/tests/framework/caching/CacheTestCase.php:89
/var/www/html/vendor/phpunit/phpunit/phpunit:52
3) yiiunit\framework\db\mysql\SchemaTest::testTableSchemaConstraints with data set "3: foreign key" ('T_constraints_3', 'foreignKeys', array(yii\db\ForeignKeyConstraint Object (...)))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- '{"columnNames":["C_fk_id_1","C_fk_id_2"],"foreignColumnNames":["C_id_1","C_id_2"],"foreignTableName":"t_constraints_2","onDelete":"CASCADE","onUpdate":"CASCADE"}' => yii\db\ForeignKeyConstraint Object (...)
+ '{"columnNames":["C_fk_id_1","C_fk_id_2"],"foreignColumnNames":["c_id_1","c_id_2"],"foreignTableName":"t_constraints_2","onDelete":"CASCADE","onUpdate":"CASCADE"}' => yii\db\ForeignKeyConstraint Object (...)
)
/var/www/html/tests/framework/db/SchemaTest.php:732
/var/www/html/tests/framework/db/SchemaTest.php:681
/var/www/html/vendor/phpunit/phpunit/phpunit:52
4) yiiunit\framework\db\mysql\SchemaTest::testTableSchemaConstraintsWithPdoUppercase with data set "3: foreign key" ('T_constraints_3', 'foreignKeys', array(yii\db\ForeignKeyConstraint Object (...)))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- '{"columnNames":["C_fk_id_1","C_fk_id_2"],"foreignColumnNames":["C_id_1","C_id_2"],"foreignTableName":"t_constraints_2","onDelete":"CASCADE","onUpdate":"CASCADE"}' => yii\db\ForeignKeyConstraint Object (...)
+ '{"columnNames":["C_fk_id_1","C_fk_id_2"],"foreignColumnNames":["c_id_1","c_id_2"],"foreignTableName":"t_constraints_2","onDelete":"CASCADE","onUpdate":"CASCADE"}' => yii\db\ForeignKeyConstraint Object (...)
)
/var/www/html/tests/framework/db/SchemaTest.php:732
/var/www/html/tests/framework/db/SchemaTest.php:699
/var/www/html/vendor/phpunit/phpunit/phpunit:52
5) yiiunit\framework\db\mysql\SchemaTest::testTableSchemaConstraintsWithPdoLowercase with data set "3: foreign key" ('T_constraints_3', 'foreignKeys', array(yii\db\ForeignKeyConstraint Object (...)))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- '{"columnNames":["C_fk_id_1","C_fk_id_2"],"foreignColumnNames":["C_id_1","C_id_2"],"foreignTableName":"t_constraints_2","onDelete":"CASCADE","onUpdate":"CASCADE"}' => yii\db\ForeignKeyConstraint Object (...)
+ '{"columnNames":["C_fk_id_1","C_fk_id_2"],"foreignColumnNames":["c_id_1","c_id_2"],"foreignTableName":"t_constraints_2","onDelete":"CASCADE","onUpdate":"CASCADE"}' => yii\db\ForeignKeyConstraint Object (...)
)
/var/www/html/tests/framework/db/SchemaTest.php:732
/var/www/html/tests/framework/db/SchemaTest.php:717
/var/www/html/vendor/phpunit/phpunit/phpunit:52
6) Warning
The data provider specified for yiiunit\framework\db\oci\QueryBuilderTest::testBuildLikeCondition is invalid.
Connection::dsn cannot be empty.
/var/www/html/vendor/phpunit/phpunit/phpunit:52
7) yiiunit\framework\db\pgsql\SchemaTest::testColumnSchema
defaultValue of column smallint_col does not match.
Failed asserting that '1' is identical to 1.
/var/www/html/tests/framework/db/SchemaTest.php:488
/var/www/html/vendor/phpunit/phpunit/phpunit:52
FAILURES!
Tests: 5344, Assertions: 21338, Failures: 7, Skipped: 1533, Incomplete: 4.
Additional info
Q | A |
---|---|
Yii version | 2.0.14-dev |
PHP version | 7.1.12 |
Operating system | Debian |
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 15 (15 by maintainers)
@schmunk42 you tell about