-
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
BcCustomContentControllerEventListener::startup()&setAdminMenu() のユニットテスト #4026
BcCustomContentControllerEventListener::startup()&setAdminMenu() のユニットテスト #4026
Conversation
レビューをお願いします。 |
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 こちらの件、不要なコードが多くありそうですので、不要なコードを削除して整理してもらえますか?
テストの内容としては、dispatch() して、Configure::read('BcApp.adminNavigation.Contents')
に期待する値が入ればOKです。
$dataBaseService = $this->getService(BcDatabaseServiceInterface::class); | ||
$customTable = $this->getService(CustomTablesServiceInterface::class); | ||
//カスタムテーブルとカスタムエントリテーブルを生成 | ||
$customTable->create([ |
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 このデータは使われてますか?
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
このデータは必要です。削除したらカスタムコンテンツをAdminMenuに反映しませんでした。
$this->loadFixtureScenario(InitAppScenario::class); | ||
$this->eventManager = EventManager::instance(); | ||
|
||
$this->BcAuthenticationEventListener = new BcCustomContentControllerEventListener(); |
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 変数名がおかしくないですか?
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 ありがとうございました。 |
No description provided.