-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add unitTest_BlogHelper_isSingle #3187
add unitTest_BlogHelper_isSingle #3187
Conversation
@ryuring レピューをお願いします。 |
$this->assertFalse($result); | ||
|
||
//param is not empty | ||
$this->Blog->getView()->setRequest($this->getRequest('/news/archives/2016/02/10/post-1')->withAttribute('currentSite', SiteFactory::get(1))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thangnnmd @HungDV2022 実際の動作では、URLが、/news/archives/2016/02/10/post-1
の場合、blogArchiveType
が daily
に設定されますので、仕様として誤解を生みそうです。次のURLに変更してください。
/news/archives/1
こちらが isSingleの際のURLとなります。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryuring URLを変更しました。確認お願いします。
$this->assertTrue($result); | ||
|
||
//BlogArchiveType is not empty | ||
$this->Blog->getView()->setRequest($this->getRequest('/news/archives/1')->withAttribute('currentSite', SiteFactory::get(1))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HungDV2022 こっちは前のURLの方が正しかったです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryuring こちらを修正しました。確認お願いします。
add BlogHelper::isSingle