Projet

Général

Profil

Révision 8e7483ab

Ajouté par Assos Assos il y a plus de 4 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/link/tests/link.crud_browser.test
8 8
/**
9 9
 * Testing that users can not input bad URLs or labels.
10 10
 */
11
class LinkUITest extends DrupalWebTestcase {
11
class LinkUiTest extends DrupalWebTestcase {
12 12

  
13 13
  /**
14 14
   * Link supposed to be good.
......
37 37
  }
38 38

  
39 39
  /**
40
   * Setup.
40
   * {@inheritdoc}
41 41
   */
42
  public function setUp() {
43
    parent::setUp('field_ui', 'link');
42
  public function setUp(array $modules = array()) {
43
    $modules[] = 'field_ui';
44
    $modules[] = 'link';
45
    parent::setUp($modules);
44 46
  }
45 47

  
46 48
  /**
......
191 193
   * title actually displays <strong>.
192 194
   */
193 195
  public function testStaticLinkCreate() {
194

  
195 196
    $this->web_user = $this->drupalCreateUser(array(
196 197
      'administer content types',
197 198
      'administer fields',
......
248 249
   *
249 250
   * Testing that if you have the title but no url, the title is not sanitized
250 251
   * twice.
251
   *
252
   * @codingStandardsIgnoreStart
253 252
   */
254
  public function testCRUDTitleOnlyTitleNoLink() {
255
    // @codingStandardsIgnoreEnd
253
  public function testCrudTitleOnlyTitleNoLink() {
256 254
    $this->web_user = $this->drupalCreateUser(array(
257 255
      'administer content types',
258 256
      'administer fields',
......
309 307
   *
310 308
   * If we're creating a new field and just hit 'save' on the default options,
311 309
   * we want to make sure they are set to the expected results.
312
   *
313
   * @codingStandardsIgnoreStart
314 310
   */
315
  public function testCRUDCreateFieldDefaults() {
316
    // @codingStandardsIgnoreEnd
317

  
311
  public function testCrudCreateFieldDefaults() {
318 312
    $this->web_user = $this->drupalCreateUser(array(
319 313
      'administer content types',
320 314
      'administer fields',
......
361 355
   *
362 356
   * If we're creating a new field and just hit 'save' on the default options,
363 357
   * we want to make sure they are set to the expected results.
364
   *
365
   * @codingStandardsIgnoreStart
366 358
   */
367
  public function testCRUDCreateFieldWithClass() {
368
    // @codingStandardsIgnoreEnd
359
  public function testCrudCreateFieldWithClass() {
369 360
    $this->web_user = $this->drupalCreateUser(array(
370 361
      'administer content types',
371 362
      'administer fields',
......
443 434
   *
444 435
   * If we're creating a new field and just hit 'save' on the default options,
445 436
   * we want to make sure they are set to the expected results.
446
   *
447
   * @codingStandardsIgnoreStart
448 437
   */
449
  public function testCRUDCreateFieldWithTwoClasses() {
450
    // @codingStandardsIgnoreEnd
438
  public function testCrudCreateFieldWithTwoClasses() {
451 439
    $this->web_user = $this->drupalCreateUser(array(
452 440
      'administer content types',
453 441
      'administer fields',

Formats disponibles : Unified diff