는 아래 내가 사용한 코드입니다 .php /) 그리고 여기에 게시물 세부 정보를 제출하면/feed/(index.php/feed /)로 리디렉션됩니다. 내가 제공 한 세부 사항은 정확하고 phpunit을 그들이 잘못 말하고있다 그러나 나는 데 문제를 작동합니다 : 바로 이해한다면phpunit을하고 젠드 프레임 워크 assertRedirectTo() 문제
There was 1 failure:
1) IndexControllerTest::testLoggedInIndexAction
Failed asserting response redirects to "/feed/"
/home/public_html/mashhr/library/Zend/Test/PHPUnit/Constraint/Redirect.php:190
/home/public_html/mashhr/library/Zend/Test/PHPUnit/ControllerTestCase.php:701
/home/public_html/mashhr/tests/application/controllers/UserControllerTest.php:36
은 indexControlleR의 작업을 제공하나요? 그렇다면 다음을 시도하십시오 : $ this-> assertRedirectTo ('/ index/feed'); – opHASnoNAME
아니요 완전히 다른 컨트롤러입니다. – Prisoner