tests/Unit/PostsServiceTest.php
/**
     * Helper method to set up the params for editing/creating.
     *
     * @return array
     */
Helper method to set up the params for editing/creating.
@return array
Helper method to set up the params for editing / creating . @return array
private function createParams(): array
    {
        return [
            'posted_at' => Carbon::now()->format('Y-m-d H:i:s'),
            'title' => $this->faker->sentence,
            'subtitle' => $this->faker->sentence,
            'post_body' => $this->faker->paragraph,
            'meta_desc' => $this->faker->paragraph,
            'short_description' => $this->faker->paragraph,
            'slug' => $this->faker->asciify('*********'),
            'categories' => null,
        ];
    }
private function createParams ( ) : array { return [ 'posted_at' => Carbon :: now ( ) -> format ( 'Y-m-d H:i:s' ) , 'title' => $ this -> faker -> sentence , 'subtitle' => $ this -> faker -> sentence , 'post_body' => $ this -> faker -> paragraph , 'meta_desc' => $ this -> faker -> paragraph , 'short_description' => $ this -> faker -> paragraph , 'slug' => $ this -> faker -> asciify ( '*********' ) , 'categories' => null , ] ; }
Helper method to set up the params for editing/creating.
Helper method to set up the params for editing / creating .