Bolt\Tests\Extension\SimpleExtensionTest::testRegister PHP Method

testRegister() public method

public testRegister ( )
    public function testRegister()
    {
        $app = $this->getApp();
        $mock = $this->getMockBuilder(NormalExtension::class)->setMethods(['getContainer'])->getMock();
        $mock->expects($this->atLeast(4))->method('getContainer')->willReturn($app);
        /** @var NormalExtension $mock */
        $mock->setContainer($app);
        $mock->register($app);
    }