Skip to content
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

Merged
merged 4 commits into from
Mar 13, 2024
Merged

add unitTest_BlogHelper_isSingle #3187

merged 4 commits into from
Mar 13, 2024

Conversation

thangnnmd
Copy link
Collaborator

add BlogHelper::isSingle

@HungDV2022
Copy link
Collaborator

@ryuring レピューをお願いします。

@HungDV2022 HungDV2022 assigned ryuring and unassigned HungDV2022 Mar 4, 2024
$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)));
Copy link
Collaborator

@ryuring ryuring Mar 4, 2024

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 の場合、blogArchiveTypedaily に設定されますので、仕様として誤解を生みそうです。次のURLに変更してください。

/news/archives/1
こちらが isSingleの際のURLとなります。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryuring URLを変更しました。確認お願いします。

@ryuring ryuring assigned HungDV2022 and unassigned ryuring Mar 4, 2024
@ryuring ryuring added the Reviewed レビュー済 label Mar 4, 2024
@HungDV2022 HungDV2022 assigned thangnnmd and unassigned HungDV2022 Mar 5, 2024
@thangnnmd thangnnmd assigned HungDV2022 and unassigned thangnnmd Mar 5, 2024
@HungDV2022 HungDV2022 assigned ryuring and unassigned HungDV2022 Mar 5, 2024
$this->assertTrue($result);

//BlogArchiveType is not empty
$this->Blog->getView()->setRequest($this->getRequest('/news/archives/1')->withAttribute('currentSite', SiteFactory::get(1)));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HungDV2022 こっちは前のURLの方が正しかったです

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryuring こちらを修正しました。確認お願いします。

@ryuring ryuring assigned HungDV2022 and thangnnmd and unassigned ryuring Mar 5, 2024
@thangnnmd thangnnmd removed their assignment Mar 6, 2024
@HungDV2022 HungDV2022 assigned ryuring and unassigned HungDV2022 Mar 11, 2024
@ryuring ryuring merged commit 7f0c634 into baserproject:dev-5.1 Mar 13, 2024
1 check passed
@momofff momofff added this to the 5.1.0 milestone Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed レビュー済
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants