
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
WordPressのカスタム投稿タイプの権限をPHPUnitでテスト - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
WordPressのカスタム投稿タイプの権限をPHPUnitでテスト - Qiita
<?php class Posttype_Test extends WP_UnitTestCase { public function test_log_post_type_should_exi... <?php class Posttype_Test extends WP_UnitTestCase { public function test_log_post_type_should_exist() { $this->assertTrue( in_array( 'log', get_post_types() ) ); } public function test_log_capabilities() { $post_type_object = get_post_type_object( 'log' ); $this->set_current_user( 'administrator' ); $this->assertTrue( current_user_can( $post_type_object->cap->edit_posts ) ); $this->assertTrue( ! c