Log message #4113551

# At Username Text
# Feb 1st 2018, 17:23 hmic if it fails with an error message, you need to solve that error first
# Feb 1st 2018, 17:22 hmic it should start a server, and show you information on how to access it
# Feb 1st 2018, 17:22 hmic you can try if all the cakephp requirements are met, if you start the dev server on the console: go to your apps root dir and type "bin/cake server"
# Feb 1st 2018, 17:21 hmic if you get a blank page, thats rather a server problem
# Feb 1st 2018, 17:21 hmic not the app log
# Feb 1st 2018, 17:21 hmic the server log
# Feb 1st 2018, 17:19 joopm but cookbook writes it does not matter
# Feb 1st 2018, 17:13 joopm extension is intalled rewriting i havent edited
# Feb 1st 2018, 17:12 joopm but log file is empty
# Feb 1st 2018, 17:12 joopm well i gave 777 permission for tmp and log
# Feb 1st 2018, 17:09 joopm thank you i try what you suggest
# Feb 1st 2018, 17:09 joopm hello hmic
# Feb 1st 2018, 17:08 hmic like neccessary extensions, rewriting, and so on
# Feb 1st 2018, 17:07 hmic make sure your server meete the prerequisites too
# Feb 1st 2018, 17:07 hmic enable debug in the app, if you created a new app template from cakephp/app that should be the case already
# Feb 1st 2018, 17:07 hmic joopm: check the serverlog
# Feb 1st 2018, 16:44 joopm but it shows only blank page the php version 7.1
# Feb 1st 2018, 16:44 joopm i created a linux server,and created a cake project
# Feb 1st 2018, 16:43 joopm i faced with a challange
# Feb 1st 2018, 16:43 joopm hello all
# Feb 1st 2018, 16:37 steinkel well done!
# Feb 1st 2018, 16:37 neon1024 I’ll take 98%
# Feb 1st 2018, 16:37 neon1024 https://coveralls.io/github/davidyell/CakePHP-Seo :)
# Feb 1st 2018, 16:37 steinkel indeed it's a feature
# Feb 1st 2018, 16:37 neon1024 We’ll call it an integration test and noone will notice!
# Feb 1st 2018, 16:36 steinkel hehe
# Feb 1st 2018, 16:36 neon1024 A small crime ;)
# Feb 1st 2018, 16:36 neon1024 Yeah, I think on balance it’s not too bad
# Feb 1st 2018, 16:36 steinkel ok, but you are using the router with this approach
# Feb 1st 2018, 16:35 neon1024 I went with this in the end which seemed to work okay
# Feb 1st 2018, 16:35 neon1024 Ahh ok
# Feb 1st 2018, 16:35 neon1024 https://github.com/davidyell/CakePHP-Seo/blob/master/tests/TestCase/View/Helper/SeoHelperTest.php#L260
# Feb 1st 2018, 16:35 steinkel you would mock the protected method, not the Router:url one
# Feb 1st 2018, 16:34 neon1024 I’d prefer to use a mock, as I don’t need to test the router
# Feb 1st 2018, 16:34 neon1024 It was the mock that caused that error :slightly_smiling_face:
# Feb 1st 2018, 16:34 steinkel @neon1024 use a protected _getUrl() method in your helper and mock it
# Feb 1st 2018, 16:23 neon1024 Well that’s nice and simple
# Feb 1st 2018, 16:23 neon1024 Ahh, I can just add routes in the test
# Feb 1st 2018, 16:17 neon1024 Not sure how else my helper can create a url without the router
# Feb 1st 2018, 16:17 neon1024 Well, https://stackoverflow.com/posts/5961194/revisions
# Feb 1st 2018, 16:15 neon1024 `1) Seo\Tests\View\Helper\SeoHelperTest::testPageLink with data set #0 (‘Examples’, 1, ‘next’, false, ‘/examples?page=2’) Static method “url” cannot be invoked on mock object`