Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
test: use constant for stronger tests
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry authored and ajsb85 committed Mar 23, 2018
1 parent f233c89 commit 6dd19e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions tests/suite-integration/PluginFlyvemdmFleet.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@

class PluginFlyvemdmFleet extends CommonTestCase {

/**
* @var string
*/
private $minAndroidVersion = '2.0.0';

public function beforeTestMethod($method) {
parent::beforeTestMethod($method);
$this->setupGLPIFramework();
Expand Down Expand Up @@ -95,7 +90,7 @@ public function testAddAgentToFleet() {
'csr' => '',
'firstname' => 'John',
'lastname' => 'Doe',
'version' => $this->minAndroidVersion,
'version' => \PluginFlyvemdmAgent::MINIMUM_ANDROID_VERSION . '.0',
'type' => 'android',
'inventory' => TestingCommonTools::AgentXmlInventory($serial),
]
Expand Down
4 changes: 1 addition & 3 deletions tests/suite-integration/PluginFlyvemdmTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

class PluginFlyvemdmTask extends CommonTestCase {

private $minAndroidVersion = '2.0.0';

public function beforeTestMethod($method) {
parent::beforeTestMethod($method);
$this->setupGLPIFramework();
Expand Down Expand Up @@ -69,7 +67,7 @@ public function testApplyPolicy() {
'csr' => '',
'firstname' => 'John',
'lastname' => 'Doe',
'version' => $this->minAndroidVersion,
'version' => \PluginFlyvemdmAgent::MINIMUM_ANDROID_VERSION . '.0',
'type' => 'android',
'inventory' => TestingCommonTools::AgentXmlInventory($serial),
]
Expand Down

0 comments on commit 6dd19e8

Please sign in to comment.