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

データ削除用のFixtureを削除する #2665

Closed
2 tasks
ryuring opened this issue Aug 8, 2023 · 2 comments
Closed
2 tasks

データ削除用のFixtureを削除する #2665

ryuring opened this issue Aug 8, 2023 · 2 comments
Assignees

Comments

@ryuring
Copy link
Collaborator

ryuring commented Aug 8, 2023

概要

cakephp-test-suite-light の導入により、データ削除用のFixture が不要になった。
全ての呼び出し元と、フィクスチャ自体も削除する。

削除対象はFactoryフォルダ配下のフィクスチャ

    public $fixtures = [
        'plugin.BaserCore.Factory/Sites',
        'plugin.BaserCore.Factory/Users',
        'plugin.BcBlog.Factory/BlogContents',
        'plugin.BcBlog.Factory/BlogPosts',
    ];

Factoryフォルダ以外のフィクスチャは削除してはいけない

    public $fixtures = [
        'plugin.BaserCore.Factory/Sites', // 削除対象
        'plugin.BaserCore.Users', // 削除してはいけない
        'plugin.BcBlog.Factory/BlogContents', // 削除対象
        'plugin.BcBlog.Factory/BlogPosts', // 削除対象
    ];

baserCMS version : 5.0.3

TODO

  • 呼び出し元を削除
  • フィクスチャクラスを削除
@HungDV2022
Copy link
Collaborator

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

ryuring pushed a commit that referenced this issue Aug 17, 2023
* baser-core
・データ削除用のFixtureを削除する
・ユニットテストから setFixtureTruncate を除外する

* baser-core
・データ削除用のFixtureを削除する
・ユニットテストから setFixtureTruncate を除外する

---------

Co-authored-by: Đỗ Văn Hùng <dovanhungk57@gmail.com>
@ryuring
Copy link
Collaborator Author

ryuring commented Aug 17, 2023

@HungDV2022 @nghiem-mb ありがとうございました。全てマージしました。

@ryuring ryuring closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants