File tree Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2727 docker-compose run --rm php bash -c ' chmod +rw -R tests/tmp'
2828 docker-compose run --rm php bash -c ' chmod +rw -R tests/codeception'
2929 docker-compose run --rm php bash -c ' mkdir -p tests/testapp/runtime && chmod +rw -R tests/testapp/runtime'
30+ docker-compose run --rm php bash -c ' chmod -R 777 tests/testapp/runtime' # TODO avoid 777
31+
3032
3133cli :
3234 docker-compose exec php bash
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ class JsonApiErrorHandler extends ErrorHandler
7070
7171 protected function renderException ($ exception )
7272 {
73+ Yii::error ($ exception );
7374 if (Yii::$ app ->has ('response ' )) {
7475 $ response = Yii::$ app ->getResponse ();
7576 // reset parameters of response to avoid interference with partially created response data
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public function testPostsCountAction(ApiTester $I)
122122 $ I ->amBearerAuthenticated ('Gamma_secret_token ' );
123123 $ I ->sendHEAD ('/me/posts-count ' );
124124 $ I ->seeResponseCodeIsSuccessful ();
125- $ I ->seeHttpHeader ('X-Pagination-Total-Count ' , 18 );
125+ $ I ->seeHttpHeader ('X-Pagination-Total-Count ' , ' 18 ' );
126126 }
127127
128128}
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ xdebug.discover_client_host=1
55xdebug.client_port =9000
66xdebug.idekey =PHPSTORM
77xdebug.connect_timeout_ms = 10
8+ ; https://stackoverflow.com/a/68605372
9+ xdebug.log_level =0
Original file line number Diff line number Diff line change 6363 [
6464 'class ' => yii \log \FileTarget::class,
6565 'levels ' => ['error ' , 'warning ' ],
66- 'logFile ' => '@runtime/ error.log ' ,
66+ 'logFile ' => '/tmp/yii2-fractal-test- error.log ' ,
6767 'logVars ' => ['_GET ' , '_POST ' ]
6868 ],
6969 ],
You can’t perform that action at this time.
0 commit comments