TagTest::it_can_create_a_tag_and_save_it_to_the_database PHP Method

it_can_create_a_tag_and_save_it_to_the_database() public method

    public function it_can_create_a_tag_and_save_it_to_the_database()
    {
        $this->actingAs($this->user)->post('admin/tag', ['tag' => 'example', 'title' => 'foo', 'subtitle' => 'bar', 'meta_description' => 'FooBar', 'layout' => config('blog.tag_layout'), 'reverse_direction' => 0]);
        $this->seeInDatabase('tags', ['tag' => 'example', 'title' => 'foo', 'subtitle' => 'bar', 'meta_description' => 'FooBar', 'layout' => config('blog.tag_layout'), 'reverse_direction' => 0]);
        $this->assertSessionHas('_new-tag', trans('messages.create_success', ['entity' => 'tag']));
        $this->assertRedirectedTo('admin/tag');
    }