Example #1
0
 public function testItCanFetchDataboxById()
 {
     $databox = $this->getMockBuilder(\databox::class)->disableOriginalConstructor()->getMock();
     $this->appbox->expects($this->once())->method('get_databox')->with(42)->willReturn($databox);
     $this->assertSame($databox, $this->sut->findDataboxById(42));
 }