public function test_getByOdooId() { /** === Test Data === */ $id = 1; /** === Call and asserts === */ $res = $this->obj->getByOdooId($id); $this->assertNotNull($res); }
public function test_getQueryToSelectCount() { /** === Setup Mocks === */ // $result = $this->_factorySelect->getQueryToSelectCount(); $mQuery = $this->_mockDbSelect(); $this->mFactorySelect->shouldReceive('getQueryToSelectCount')->once()->andReturn($mQuery); /** === Call and asserts === */ $res = $this->obj->getQueryToSelectCount(); $this->assertInstanceOf(\Magento\Framework\DB\Select::class, $res); }