EC-CUBE / EC-CUBE/eccube-api

APIプラグインがインストールされていると、 EC-CUBE 本体の Webテストに失敗する

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
13
Forks
20
PR merge metrics
No merged PRs in 30d

Description

`$request->get('parameter')` としている箇所で値が取得できずに失敗する模様

```
$ vendor/bin/phpunit tests/Eccube/Tests/Web/
PHPUnit 4.6.10 by Sebastian Bergmann and contributors.

Configuration read from /export/home/nanasess/git-repos/ec-cube3/phpunit.xml.dist

...........................................E.....E............. 63 / 206 ( 30%)
...F........F................S................................. 126 / 206 ( 61%)
...................SS.......................................... 189 / 206 ( 91%)
.................

Time: 1.24 minutes, Memory: 55.42Mb

There were 2 errors:

1) Eccube\Tests\Web\Admin\Order\EditControllerTest::testSearchCustomerById
Doctrine\ORM\ORMException: The identifier id is missing for a query of Eccube\Entity\Customer

/export/home/nanasess/git-repos/ec-cube3/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:259
/export/home/nanasess/git-repos/ec-cube3/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:378
/export/home/nanasess/git-repos/ec-cube3/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:154
/export/home/nanasess/git-repos/ec-cube3/src/Eccube/Controller/Admin/Order/EditController.php:372
/export/home/nanasess/git-repos/ec-cube3/vendor/symfony/http-kernel/HttpKernel.php:139
/export/home/nanasess/git-repos/ec-cube3/vendor/symfony/http-kernel/HttpKernel.php:62
/export/home/nanasess/git-repos/ec-cube3/vendor/silex/silex/src/Silex/Application.php:586
/export/home/nanasess/git-repos/ec-cube3/vendor/symfony/http-kernel/Client.php:79
/export/home/nanasess/git-repos/ec-cube3/vendor/symfony/browser-kit/Client.php:297
/export/home/nanasess/git-repos/ec-cube3/tests/Eccube/Tests/Web/Admin/Order/EditControllerTest.php:222

2) Eccube\Tests\Web\Admin\Order\MailControllerTest::testView
Doctrine\ORM\ORMException: The identifier id is missing for a query of Eccube\Entity\MailHistory

/export/home/nanasess/git-repos/ec-cube3/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:259
/export/home/nanasess/git-repos/ec-cube3/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:378
/export/home/nanasess/git-repos/ec-cube3/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:154
/export/home/nanasess/git-repos/ec-cube3/src/Eccube/Controller/Admin/Order/MailController.php:181
/export/home/nanasess/git-repos/ec-cube3/vendor/symfony/http-kernel/HttpKernel.php:139
/export/home/nanasess/git-repos/ec-cube3/vendor/symfony/http-kernel/HttpKernel.php:62
/export/home/nanasess/git-repos/ec-cube3/vendor/silex/silex/src/Silex/Application.php:586
/export/home/nanasess/git-repos/ec-cube3/vendor/symfony/http-kernel/Client.php:79
/export/home/nanasess/git-repos/ec-cube3/vendor/symfony/browser-kit/Client.php:297
/export/home/nanasess/git-repos/ec-cube3/tests/Eccube/Tests/Web/Admin/Order/MailControllerTest.php:127

--

There were 2 failures:

1) Eccube\Tests\Web\Admin\Product\CategoryControllerTest::testMoveRank
Failed asserting that 4 matches expected 10.

/export/home/nanasess/git-repos/ec-cube3/tests/Eccube/Tests/EccubeTestCase.php:159
/export/home/nanasess/git-repos/ec-cube3/tests/Eccube/Tests/Web/Admin/Product/CategoryContorllerTest.php:267

2) Eccube\Tests\Web\Admin\Product\ClassNameControllerTest::testMoveRank
Failed asserting that 1 matches expected 10.

/export/home/nanasess/git-repos/ec-cube3/tests/Eccube/Tests/EccubeTestCase.php:159
/export/home/nanasess/git-repos/ec-cube3/tests/Eccube/Tests/Web/Admin/Product/ClassNameContorllerTest.php:164

FAILURES!
Tests: 206, Assertions: 315, Errors: 2, Failures: 2, Skipped: 3.

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.