Gush\Tests\Template\Pats\PatTemplateTest::testWrongPatName PHP Method

testWrongPatName() public method

public testWrongPatName ( )
    public function testWrongPatName()
    {
        $this->template->bind(['author' => self::TEST_AUTHOR, 'pat' => 'nonexistent']);
        $this->setExpectedException('\\InvalidArgumentException', 'Pat named "nonexistent" doesn\'t exist');
        $this->template->render();
    }