‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest:

Public Member Functions

 isButtonValid ()
 
 rendersCorrectMarkup (ShortcutButton $button, string $expectedMarkupFile)
 
 rendersCorrectMarkupDataProvider ()
 

Protected Member Functions

 setUp ()
 

Private Member Functions

string normalizeSpaces (string $html)
 

Private Attributes

const FIXTURES_PATH_PATTERN = __DIR__ . '/../../../Fixtures/%s.html'
 

Detailed Description

Definition at line 27 of file ShortcutButtonTest.php.

Member Function Documentation

◆ isButtonValid()

TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest::isButtonValid ( )
Test:

Definition at line 47 of file ShortcutButtonTest.php.

◆ normalizeSpaces()

string TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest::normalizeSpaces ( string  $html)
private

Normalizes spaces for comparing markup.

  • < will be < (removing leading spaces before < on a line)
  • href="" will be href="" (reducing multiple leading spaces to just one space)
  • \n</span>\n</span> will be </span></span> (removing all vertical spaces - like new lines)
Parameters
string$html
Returns
‪string

Definition at line 166 of file ShortcutButtonTest.php.

Referenced by TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest\rendersCorrectMarkup().

◆ rendersCorrectMarkup()

TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest::rendersCorrectMarkup ( ShortcutButton  $button,
string  $expectedMarkupFile 
)

◆ rendersCorrectMarkupDataProvider()

TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest::rendersCorrectMarkupDataProvider ( )

Definition at line 65 of file ShortcutButtonTest.php.

◆ setUp()

TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest::setUp ( )
protected

Member Data Documentation

◆ FIXTURES_PATH_PATTERN

const TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest::FIXTURES_PATH_PATTERN = __DIR__ . '/../../../Fixtures/%s.html'
private

Definition at line 29 of file ShortcutButtonTest.php.