InventoryAccountService_ConditionSearchTest.php 749 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Tests\Inventory\Services\InventoryAccountService;
  3. use App\Services\InventoryAccountService;
  4. use Tests\TestCase;
  5. class InventoryServiceConditionSearchTest extends TestCase
  6. {
  7. public $data;
  8. public $ownerId=null;
  9. function testConditionSearchFail(){
  10. $inventoryService=new InventoryAccountService();
  11. $this->data=$inventoryService->conditionPortStock('','',$this->ownerId);
  12. $this->assertNull($this->data);
  13. }
  14. function testConditionSearchCanSearchData(){
  15. $inventoryService=new InventoryAccountService();
  16. $this->ownerId=3;
  17. $this->data=$inventoryService->conditionPortStock('2020-08-19','2020-08-19',$this->ownerId);
  18. $this->assertNotEmpty($this->data);
  19. }
  20. }