Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 34... Línea 34...
34
class content_item_test extends \advanced_testcase {
34
class content_item_test extends \advanced_testcase {
Línea 35... Línea 35...
35
 
35
 
36
    /**
36
    /**
37
     * Test the content_item class.
37
     * Test the content_item class.
38
     */
38
     */
39
    public function test_content_item() {
39
    public function test_content_item(): void {
Línea 40... Línea 40...
40
        $this->resetAfterTest();
40
        $this->resetAfterTest();
41
 
41
 
42
        $contentitem = new content_item(22, 'Item name', new lang_string_title('modulename', 'mod_assign'),
42
        $contentitem = new content_item(22, 'Item name', new lang_string_title('modulename', 'mod_assign'),
Línea 56... Línea 56...
56
    }
56
    }
Línea 57... Línea 57...
57
 
57
 
58
    /**
58
    /**
59
     * Test confirming that plugins can return custom titles for a content item.
59
     * Test confirming that plugins can return custom titles for a content item.
60
     */
60
     */
61
    public function test_content_item_custom_string_title() {
61
    public function test_content_item_custom_string_title(): void {
Línea 62... Línea 62...
62
        $this->resetAfterTest();
62
        $this->resetAfterTest();
63
 
63
 
64
        $contentitem = new content_item(22, 'Item name', new string_title('My custom string'),
64
        $contentitem = new content_item(22, 'Item name', new string_title('My custom string'),