yaelahrep's avatar

Test throw request to console

My test throw the $data to console, i dont know why, i'll try to run whole script but it stuck.

/** @test */
    public function a_teacher_can_make_many_mutation_grades()
    {
        $this->withoutExceptionHandling();
        $mutation = Mutation::first();
        $data = [
            'mutation_uuid' => $mutation->uuid,
            'subject' => [
                'makan ayam',
                'makan kuda'
            ],
            'grade' => [
                'A',
                'B'
            ]
        ];

        $response = $this->post('api/v1/mutation-grades', $data);
        $response->assertStatus(200);
        $response->assertJsonStructure([
            'result' => [
                'code',
                'success',
                'message',
            ],
            'data',
        ]);
    }

The result is

❯ pf a_teacher_can_make_many_mutation_grades
PHPUnit 9.5.20 #StandWithUkraine

array:3 [
  "mutation_uuid" => "06a44a42-41b6-436b-8c13-4b4d137622b1"
  "subject" => array:2 [
    0 => "makan ayam"
    1 => "makan kuda"
  ]
  "grade" => array:2 [
    0 => "A"
    1 => "B"
  ]
]
0 likes
2 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Show the method you are testing. Maybe there is a dd()

Please or to participate in this conversation.