tests/Feature/PostManagementTest.php
/**
     * Create parent builder parts for a post.
     * 
     * @return void
     */
Create parent builder parts for a post.

@return void
Create parent builder parts for a post . @return void
protected function createParents()
    {
        $user = User::factory()->create([
            'access_level' => 2
        ]);
        $this->actingAs($user)->post('/page', [
            'title' => 'Főoldal',
            'title_visibility' => true,
            'position' => Page::getNextPosition(),
            'category_id' => 1
        ]);
        $this->post('/section', [
            'title' => 'Szekció',
            'title_visibility' => true,
            'position' => Section::getNextPosition(),
            'page_id' => 1
        ]);
    }
protected function createParents ( ) { $ user = User :: factory ( ) -> create ( [ 'access_level' => 2 ] ) ; $ this -> actingAs ( $ user ) -> post ( '/page' , [ 'title' => 'Főoldal', 'title_visibility' => true , 'position' => Page :: getNextPosition ( ) , 'category_id' => 1 ] ) ; $ this -> post ( '/section' , [ 'title' => 'Szekció', 'title_visibility' => true , 'position' => Section :: getNextPosition ( ) , 'page_id' => 1 ] ) ; }
Create parent builder parts for a post.
Create parent builder parts for a post .