PHP Class Piwik\Plugins\CoreUpdater\Test\UpdateCommunicationTest

Inheritance: extends Piwik\Tests\Framework\TestCase\IntegrationTestCase
Show file Open project: piwik/piwik

Public Methods

Method Description
provideSendNotificationData ( )
setUp ( )
test_isEnabled ( )
test_sendNotificationIfUpdateAvailable ( $latestVersion, $lastSentVersion, $expects, $expectedLastSentVersion )
test_sendNotifications_shouldNotIncludeChangelogIfNotMajorVersionUpdate ( )
test_sendNotifications_shouldSentCorrectEmail ( )

Private Methods

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

Method Details

provideSendNotificationData() public method

setUp() public method

public setUp ( )

test_isEnabled() public method

public test_isEnabled ( )

test_sendNotificationIfUpdateAvailable() public method

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

test_sendNotifications_shouldNotIncludeChangelogIfNotMajorVersionUpdate() public method

test_sendNotifications_shouldSentCorrectEmail() public method