Ejemplo n.º 1
0
 /**
  * Validate delivery code:
  * Valid Bol delivery code
  * @param string $deliveryCode
  */
 public static function deliveryCode($deliveryCode)
 {
     Assert::inArray($deliveryCode, DeliveryCode::all());
 }
Ejemplo n.º 2
0
 public function testAllDeliveryCodes()
 {
     $expectedAmount = 17;
     $actualAmount = count(DeliveryCode::all());
     $this->assertEquals($expectedAmount, $actualAmount);
 }