/** * Test upload method */ public function testUpload() { $mode = 'add'; $this->adapter->expects($this->once())->method('upload')->with($this->isType('array'), $mode); $this->service->setAdapter($this->adapter); $this->assertEquals($this->adapter, $this->service->getAdapter()); $this->service->upload($this->getLangFixturesDir(), $mode); }