tests/unit/Subjects/AbstractSubjectTest.php
/**
     * Test the getCoreConfigData() method throwing an exception.
     *
     * @return void
     */
Test the getCoreConfigData() method throwing an exception.
@return void
Test the getCoreConfigData () method throwing an exception . @return void
public function testGetCoreConfigDataWithException()
    {
        $this->expectException(\Exception::class);
        $this->expectExceptionMessage('Can\'t find a value for configuration "unknown/config/value-default-0" in "core_config_data"');
        $this->abstractSubject->getCoreConfigData('unknown/config/value');
    }
public function testGetCoreConfigDataWithException ( ) { $ this -> expectException ( \ Exception :: class ) ; $ this -> expectExceptionMessage ( 'Can\'t find a value for configuration "unknown/config/value-default-0" in "core_config_data"' ) ; $ this -> abstractSubject -> getCoreConfigData ( 'unknown/config/value' ) ; }
Test the getCoreConfigData() method throwing an exception.
Test the getCoreConfigData () method throwing an exception .