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

BlogHelper::isArchive のユニットテスト #3122

Merged
merged 2 commits into from
Feb 17, 2024

Conversation

HungDV2022
Copy link
Collaborator

No description provided.

*/
public function isArchive()
{
return ($this->getBlogArchiveType());
return ($this->getBlogArchiveType() == 'archive');
Copy link
Collaborator

Choose a reason for hiding this comment

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

@HungDV2022 こちら仕様が変わってしまってます

{
return [
['archive', true],
['category', false],
Copy link
Collaborator

Choose a reason for hiding this comment

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

@HungDV2022
こちらのメソッド、基本的には、コントローラーから、blogArchiveType というキーに値が引き渡されれば、true となる仕様でお願いします。

BlogFrontService を参考にしてください。

@ryuring ryuring assigned HungDV2022 and unassigned ryuring Feb 15, 2024
@ryuring ryuring added the Reviewed レビュー済 label Feb 15, 2024
@ryuring ryuring added this to the 5.0.9 milestone Feb 15, 2024
@HungDV2022
Copy link
Collaborator Author

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

@HungDV2022 HungDV2022 assigned ryuring and unassigned HungDV2022 Feb 16, 2024
@ryuring ryuring merged commit 508b2af into baserproject:dev-5.1 Feb 17, 2024
1 check passed
@ryuring ryuring modified the milestones: 5.0.9, 5.0.10 Feb 25, 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.

3 participants