Skip to content

Commit

Permalink
Update UnitTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm authored Jul 28, 2024
1 parent f9e2c9e commit e239fe1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Unit/UnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,12 @@ public function testFromNodeWithRoles()
$this->assertEquals(1, $data->getNid());
$this->assertEquals(['role1', 'role2'], $data->getRoles());
}

public function testFromNodeWithEnv()
{
$node = new DummyNode();
$node->set('field_environment_variables', 'FOO=bar');
$data = ProjectData::fromNode($node);
self::assertEquals(['FOO' => 'bar'], $data->getEnvArray());
}
}

0 comments on commit e239fe1

Please sign in to comment.