0

Running a PHPUnit controller test in Visual Studio Code terminal receives error in testIndex:

UnexpectedValueException: Could not find fixture app.Questions.

C:\server\www\host\vendor\cakephp\cakephp\src\TestSuite\Fixture\FixtureHelper.php:90
C:\server\www\host\WebBuilderLogin\vendor\cakephp\cakephp\src\TestSuite\Fixture\TruncateStrategy.php:51
C:\server\www\host\WebBuilderLogin\vendor\cakephp\cakephp\src\TestSuite\TestCase.php:301
C:\server\www\host\WebBuilderLogin\vendor\cakephp\cakephp\src\TestSuite\TestCase.php:249

The Fixture is present in the Fixture directory which is in the tests directory.

tests
 |-Fixture
  |=ArticlesFixture.php
 |-TestCase
  |-Controller
   |=ArticlesControllerTest.php
ndm
  • 59,784
  • 9
  • 71
  • 110
  • The error message refers to the `Questions` fixture, not the `Articles` fixture that you are showing. – ndm Jan 14 '23 at 14:25

0 Answers0