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

Create a new board.
public create ( string $name, string $description, string $privacy = self::BOARD_PRIVACY_PUBLIC ) : boolean
$name string
$description string
$privacy string Can be 'public' or 'secret'. 'public' by default.
Результат boolean
Пример #1
0
 /** @test */
 public function createBoard()
 {
     $response = $this->createSuccessApiResponse();
     $error = $this->createErrorApiResponse();
     $this->mock->shouldReceive('exec')->once()->andReturn($response);
     $this->mock->shouldReceive('exec')->once()->andReturn($error);
     $this->assertTrue($this->provider->create('test', 'test'));
     $this->assertFalse($this->provider->delete('test', 'test'));
 }
Пример #2
0
 /** @test */
 public function it_should_create_board()
 {
     $this->apiShouldReturnSuccess()->assertTrue($this->provider->create('test', 'test'));
     $this->apiShouldReturnError()->assertFalse($this->provider->create('test', 'test'));
 }