magento2: Magento has many errors in the framework of the tests

Output dev:tests:run

I run dev:tests:run and final log is:

FAILURES! Tests: 367, Assertions: 23858, Failures: 3, Errors: 2, Incomplete: 1, Skipped: 238.

Some lines of debug:

...........PHP Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 . Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 PHP Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 . Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 PHP Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 . Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 PHP Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 . Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 PHP Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 . Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99 PHP Notice: Object of class Magento\Framework\Phrase could not be converted to int in /home/vagrant/projects/web/magento/mymagento/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php on line 99

And also I don’t know how the dev tests unable to access the database.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 18 (12 by maintainers)

Commits related to this issue

Most upvoted comments

I am running into the same error.

Magento EE v 2.1.7 PHP 7.0.12

Is this issue being looking into by the Magento team?

@francisrod01, thank you for your report. The issue has been fixed in magento/magento2#2092 by @orlangur in 2.3-develop branch Related commit(s):

  • fff51bcb00aa7daf99e703570db2ba193c7e427f

Regarding setting up the integration tests database, maybe this page will be helpful: http://devdocs.magento.com/guides/v2.1/test/integration/integration_test_execution.html

@francisrod01, thank you for your report. We’ve created internal ticket(s) MAGETWO-84283 to track progress on the issue.

Same issue here, when will this be fixed?

@devtosystems please specify Magento version. If the problem is actual for a specific tag, please, specify it and be sure that the latest update was used.

Please specify Magento affected version. Also provide info about your environment (php, mysql, web-server and so on)