company->id; $store->save(9, true, $companyId, (int) $this->user->id, 'manual'); $store->save(11, false, $companyId, (int) $this->user->id, 'manual'); $rows = $store->decorateRows([ (object) ['Id' => 9], (object) ['Id' => 11], (object) ['Id' => 12], ], $companyId); $this->assertTrue($rows[0]->free_shipping_manufacturer); $this->assertFalse($rows[1]->free_shipping_manufacturer); $this->assertFalse($rows[2]->free_shipping_manufacturer); $this->assertSame([ 9 => true, 11 => false, 12 => false, ], $store->flagsBySupplierIds([9, 11, 12], $companyId)); $otherCompanyRows = $store->decorateRows([(object) ['Id' => 9]], $companyId + 1); $this->assertFalse($otherCompanyRows[0]->free_shipping_manufacturer); } }