/** * @dataProvider providerLocatorContructorsArguments */ public function testHasMethodsShouldReturnFalseForNullValuesAndTrueForNotNull($url, $key, $type, $fieldset, $tab, $parameters, $pageKey) { $locator = new Locator($url, $key, $type, $fieldset, $tab, $parameters, $pageKey); if (null === $url) { $this->assertFalse($locator->hasPageUrl()); } else { $this->assertTrue($locator->hasPageUrl()); } if (null === $key) { $this->assertFalse($locator->hasKey()); } else { $this->assertTrue($locator->hasKey()); } if (null === $type) { $this->assertFalse($locator->hasType()); } else { $this->assertTrue($locator->hasType()); } if (null === $fieldset) { $this->assertFalse($locator->hasFieldset()); } else { $this->assertTrue($locator->hasFieldset()); } if (null === $tab) { $this->assertFalse($locator->hasTab()); } else { $this->assertTrue($locator->hasTab()); } if ($parameters) { $this->assertTrue($locator->hasParameters()); } else { $this->assertFalse($locator->hasParameters()); } if (null === $pageKey) { $this->assertFalse($locator->hasPageKey()); } else { $this->assertTrue($locator->hasPageKey()); } }