public function test_deleteById_notArray() { /** === Test Data === */ $ID = 'simple'; $DELETED = 1; /** === Setup Mocks === */ // $result = $this->_repoBasic->deleteEntityByPk($this->_entityName, $pk); $this->mRepoGeneric->shouldReceive('deleteEntityByPk')->once()->with($this->ENTITY_NAME, [$this->PK_ATTR => $ID])->andReturn($DELETED); /** === Call and asserts === */ $res = $this->obj->deleteById($ID); $this->assertEquals($DELETED, $res); }