Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
InterceptableValidatorTest.php
Go to the documentation of this file.
1 <?php
7 
8 require __DIR__ . '/_files/Proxy.php';
9 
10 class InterceptableValidatorTest extends \PHPUnit\Framework\TestCase
11 {
12  public function testValidate()
13  {
14  $interceptableValidator = new \Magento\Framework\ObjectManager\InterceptableValidator();
15  $this->assertFalse(
16  $interceptableValidator->validate(
17  \Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\Interceptor::class
18  )
19  );
20  $this->assertFalse(
21  $interceptableValidator->validate(
22  \Magento\Test\Di\Proxy::class
23  )
24  );
25  }
26 }
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60