45 : void
46 {
47 $ilBiblEntryFactory = $this->createMock(ilBiblEntryFactoryInterface::class);
48 $ilBiblFieldFactory = $this->createMock(ilBiblFieldFactoryInterface::class);
49 $ilBiblAttributeFactory = $this->createMock(ilBiblAttributeFactoryInterface::class);
51 $ilBiblEntryFactory,
52 $ilBiblFieldFactory,
53 $ilBiblAttributeFactory
54 );
56 $content = $reader->parseContent();
57
58 $this->assertIsArray($content);
59 $this->assertEquals(2, count($content));
60
61
62 $first_item = $content[0];
63
64 $this->assertEquals('BOOK', $first_item['TY']);
65 $this->assertEquals('Schrode, Paula, Simon, Udo Gerald', $first_item['A2']);
66 $this->assertEquals('Die Sunna leben', $first_item['T1']);
67 $this->assertEquals('zur Dynamik islamischer Religionspraxis in Deutschland', $first_item['T2']);
68 $this->assertEquals('Würzburg', $first_item['CY']);
69 $this->assertEquals('2012', $first_item['Y1']);
70 $this->assertEquals('Egon', $first_item['PB']);
71 $this->assertEquals('Deutschland, Islam, Religionsausübung, Kongress', $first_item['KW']);
72 $this->assertEquals('250 S.', $first_item['EP']);
73 $this->assertEquals('978-3-89913-722-4', $first_item['SN']);
74
75
76 $second_item = $content[1];
77
78 $this->assertEquals('JOURNAL', $second_item['TY']);
79 $this->assertEquals('Gienow-Hecht, Jessica C. E.', $second_item['A2']);
80 $this->assertEquals('Searching for a cultural diplomacy', $second_item['T1']);
81 $this->assertEquals('New York [u.a.]', $second_item['CY']);
82 $this->assertEquals('2010', $second_item['Y1']);
83 $this->assertEquals('Berghahn', $second_item['PB']);
84 $this->assertEquals('Sowjetunion, Mitteleuropa, Naher Osten, Japan, Kulturbeziehungen, Diplomatie, Geschichte 1900-2000, Aufsatzsammlung', $second_item['KW']);
85 $this->assertEquals('XII, 265 S.', $second_item['EP']);
86 $this->assertEquals('978-1-84545-746-4', $second_item['SN']);
87 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...