質問編集履歴

1

表示くずれ修正

2022/05/25 05:05

投稿

uni..
uni..

スコア79

test CHANGED
File without changes
test CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  テスト対象は以下のメソッドです
6
6
 
7
+ ```ここに言語を入力
7
8
  Use App\Model\MyModel
8
9
 
9
10
  class User extends Model
@@ -18,6 +19,7 @@
18
19
  MyModel::staticMethod('test', ['foo' => 'bar']); //これをモックしたい
19
20
  }
20
21
  }
22
+ ```
21
23
 
22
24
  MyModelをモックして、staticMethod()が1度呼ばれることをテストしたいです。
23
25