‪TYPO3CMS  ‪main
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 ()
 
 buttonIsNotRenderedForUserWithInsufficientPermissions ()
 
 rendersCorrectMarkup (ShortcutButton $button, string $expectedMarkupFile)
 

Static Public Member Functions

static rendersCorrectMarkupDataProvider ()
 

Private Member Functions

 normalizeSpaces (string $html)
 

Private Attributes

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

Detailed Description

Definition at line 29 of file ShortcutButtonTest.php.

Member Function Documentation

◆ buttonIsNotRenderedForUserWithInsufficientPermissions()

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

Definition at line 43 of file ShortcutButtonTest.php.

References $GLOBALS.

◆ isButtonValid()

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

Definition at line 34 of file ShortcutButtonTest.php.

◆ normalizeSpaces()

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)

Definition at line 170 of file ShortcutButtonTest.php.

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

◆ rendersCorrectMarkup()

◆ rendersCorrectMarkupDataProvider()

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

Definition at line 72 of file ShortcutButtonTest.php.

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 31 of file ShortcutButtonTest.php.