PHP Class Piwik\Plugins\CoreUpdater\Test\UpdateCommunicationTest

Inheritance: extends Piwik\Tests\Framework\TestCase\IntegrationTestCase
Afficher le fichier Open project: piwik/piwik

Méthodes publiques

Méthode Description
provideSendNotificationData ( )
setUp ( )
test_isEnabled ( )
test_sendNotificationIfUpdateAvailable ( $latestVersion, $lastSentVersion, $expects, $expectedLastSentVersion )
test_sendNotifications_shouldNotIncludeChangelogIfNotMajorVersionUpdate ( )
test_sendNotifications_shouldSentCorrectEmail ( )

Private Methods

Méthode Description
assertEmailForVersion ( $version, $expectedMessage )
getCommunicationMock ( array $methodsToOverwrite ) : Piwik\Plugins\CoreUpdater\UpdateCommunication
getLastSentVersion ( )
preventVersionIsOverwrittenByActualVersionCheck ( )
setLastSentVersion ( $value )
setLatestVersion ( $value )

Method Details

provideSendNotificationData() public méthode

setUp() public méthode

public setUp ( )

test_isEnabled() public méthode

public test_isEnabled ( )

test_sendNotificationIfUpdateAvailable() public méthode

public test_sendNotificationIfUpdateAvailable ( $latestVersion, $lastSentVersion, $expects, $expectedLastSentVersion )

test_sendNotifications_shouldNotIncludeChangelogIfNotMajorVersionUpdate() public méthode

test_sendNotifications_shouldSentCorrectEmail() public méthode