Skip to content

Commit

Permalink
test(sdk): update function name
Browse files Browse the repository at this point in the history
  • Loading branch information
softvar committed Jun 15, 2020
1 parent 077e561 commit 750d049
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion tests/Utils/ValidationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function setUp()
}
public function testTrackValidation()
{
$this->settings8 = Settings8::use();
$this->settings8 = Settings8::setup();

$userId = $this->users[rand(0, count($this->users) - 1)];
$this->vwoInstance = TestUtil::instantiateSdk($this->settings8, ['isUserStorage' => 1]);
Expand Down
16 changes: 8 additions & 8 deletions tests/VWOTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ protected function setUp()
{
$this->users = TestUtil::getUsers();

$this->settings1 = Settings1::use();
$this->settings2 = Settings2::use();
$this->settings3 = Settings3::use();
$this->settings4 = Settings4::use();
$this->settings5 = Settings5::use();
$this->settings6 = Settings6::use();
$this->settings7 = Settings7::use();
$this->settings8 = Settings8::use();
$this->settings1 = Settings1::setup();
$this->settings2 = Settings2::setup();
$this->settings3 = Settings3::setup();
$this->settings4 = Settings4::setup();
$this->settings5 = Settings5::setup();
$this->settings6 = Settings6::setup();
$this->settings7 = Settings7::setup();
$this->settings8 = Settings8::setup();
$segmentEvaluatorJson = new SegmentEvaluatorJson();
$results = new VariationResults();

Expand Down
2 changes: 1 addition & 1 deletion tests/assets/Settings1.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class Settings1
{
public static function use()
public static function setup()
{
return [
'sdkKey' => 'loremipsum123456',
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/Settings2.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class Settings2
{

public static function use()
public static function setup()
{
return [
'sdkKey' => 'loremipsum1234567',
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/Settings3.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class Settings3
{
public static function use()
public static function setup()
{
return [
'sdkKey' => 'loremipsum1234567',
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/Settings4.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class Settings4
{
public static function use()
public static function setup()
{
return [
'sdkKey' => 'loremipsum1234567',
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/Settings5.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class Settings5
{
public static function use()
public static function setup()
{
return [
'sdkKey' => 'loremipsum1234567',
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/Settings6.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class Settings6
{
public static function use()
public static function setup()
{
return [
'sdkKey' => 'loremipsum1234567',
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/Settings7.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class Settings7
{
public static function use()
public static function setup()
{
return [
"featureFlags" => [[
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/Settings8.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class Settings8
{
public static function use()
public static function setup()
{
return array(
'sdkKey' => 'loremipsum123456',
Expand Down

0 comments on commit 750d049

Please sign in to comment.