예제 #1
0
 /**
  * Tests expandDependencies() when no variants exist and there are no static
  * (non-variant) dependencies.
  *
  * @covers ::expandDependencies
  */
 public function testExpandDependenciesNoVariantsOrStaticDependencies()
 {
     $this->query->method('execute')->willReturn([]);
     $dependencies = ['required' => ['d6_node:*', 'd6_node_revision:*']];
     $dependencies = $this->storage->expandDependencies($dependencies);
     $this->assertSame([], $dependencies['required']);
 }
예제 #2
0
 /**
  * Tests getVariantIds() when no variants exist and there are no static
  * (non-variant) dependencies.
  *
  * @covers ::getVariantIds
  */
 public function testGetVariantIdsNoVariantsOrStaticDependencies()
 {
     $this->query->method('execute')->willReturn([]);
     $ids = $this->storage->getVariantIds(['d6_node:*', 'd6_node_revision:*']);
     $this->assertSame([], $ids);
 }