예제 #1
0
 public function test_getByOdooId()
 {
     /** === Test Data === */
     $id = 1;
     /** === Call and asserts  === */
     $res = $this->obj->getByOdooId($id);
     $this->assertNotNull($res);
 }
예제 #2
0
 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);
 }