public function mockAdapterPost(array $parameters)
    {
        $post = $this->plugAdapter(Post::class, new \WP_Post(new \StdClass))->first();

        foreach ($parameters as $key => $value) {
            $post->{$key} = $value;
        }

        return $post;
    }
public function mockAdapterPost(array $parameters)
    {
        $post = $this->plugAdapter(Post::class, new \WP_Post(new \StdClass))->first();

        foreach ($parameters as $key => $value) {
            $post->{$key} = $value;
        }

        return $post;
    }
public function mockAdapterPost ( array $ parameters ) { $ post = $ this -> plugAdapter ( Post :: class , new \ WP_Post ( new \ StdClass ) ) -> first ( ) ; foreach ( $ parameters as $ key => $ value ) { $ post -> { $ key } = $ value ; } return $ post ; }
Mock post adapter.

@param array $parameters

@return \Assely\Adapter\Post
Mock post adapter .