Domain\Classroom\ClassroomRepositoryTest::test_store PHP Метод

test_store() публичный Метод

public test_store ( )
    public function test_store()
    {
        $repo = App::make(ClassroomRepository::class);
        $teacher = factory(Teacher::class)->create();
        $schedule = factory(Schedule::class)->create();
        $store = $repo->store(['name' => 'oi', 'teacher_id' => $teacher->id, 'schedule_id' => $schedule->id]);
        $this->assertInstanceOf(Classroom::class, $store);
        $this->assertInstanceOf(Carbon::class, $store->created_at);
    }