TYPO3 CMS  TYPO3_6-2
UpdateTranslationFormTest.php
Go to the documentation of this file.
1 <?php
2 
4 
22 
26  protected $fixture = NULL;
27 
28  public function setUp() {
29  $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\UpdateTranslationForm();
30  }
31 
36  $this->assertSame(
37  array(),
38  $this->fixture->getSelectedLanguages()
39  );
40  }
41 
46  $languages = array(
47  'nl',
48  'de',
49  );
50  $this->fixture->setSelectedLanguages($languages);
51 
52  $this->assertSame(
53  $languages,
54  $this->fixture->getSelectedLanguages()
55  );
56  }
57 
62  $this->assertSame(
63  array(),
64  $this->fixture->getExtensions()
65  );
66  }
67 
71  public function setExtensionsSetsExtensions() {
72  $extensions = array(
73  1 => 'about',
74  2 => 'aboutmodules',
75  3 => 'adodb',
76  );
77  $this->fixture->setExtensions($extensions);
78 
79  $this->assertSame(
80  $extensions,
81  $this->fixture->getExtensions()
82  );
83  }
84 }