Skip to content

Instantly share code, notes, and snippets.

@naydav
Created September 28, 2017 11:28
Show Gist options
  • Save naydav/69c34ab05475ba7cc5280c2442328d48 to your computer and use it in GitHub Desktop.
Save naydav/69c34ab05475ba7cc5280c2442328d48 to your computer and use it in GitHub Desktop.
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Inventory\Test\Integration;
use Magento\InventoryApi\Api\ReservationBuilderInterface;
use Magento\TestFramework\Helper\Bootstrap;
use PHPUnit\Framework\TestCase;
class ReservationValidationTest extends TestCase
{
/**
* @var ReservationBuilderInterface
*/
private $reservationBuilder;
protected function setUp()
{
$this->reservationBuilder = Bootstrap::getObjectManager()->create(ReservationBuilderInterface::class);
}
public function testTypeDeclaration()
{
$reservation = $this->reservationBuilder
// without any fields
->build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment