1 |
efrain |
1 |
<?php
|
|
|
2 |
// This file is part of Moodle - http://moodle.org/
|
|
|
3 |
//
|
|
|
4 |
// This program is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// This program is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
declare(strict_types=1);
|
|
|
18 |
|
|
|
19 |
namespace testUtils;
|
|
|
20 |
|
|
|
21 |
/**
|
|
|
22 |
* Class TestStringGenerator
|
|
|
23 |
*
|
|
|
24 |
* Get your strings while they're hot!
|
|
|
25 |
*
|
|
|
26 |
* @author Marian Ziegler <ziegler@edu-sharing.net>
|
|
|
27 |
* @package mod_edusharing
|
|
|
28 |
*/
|
|
|
29 |
class TestStringGenerator {
|
|
|
30 |
/**
|
|
|
31 |
* Function getattoteststring
|
|
|
32 |
*
|
|
|
33 |
* @return String
|
|
|
34 |
*/
|
|
|
35 |
public static function getattoteststring(): String {
|
|
|
36 |
return '<p dir="ltr" style="text-align: left;"><a class="edusharing_atto"'
|
|
|
37 |
. ' style="" href="http://test.de/lib/editor/atto/plugins/edusharing/preview.php?resourceId=6&'
|
|
|
38 |
. 'nodeId=0fc4e8bb-3837-474b-a975-255ee9de65ee&storeProtocol=workspace&' .
|
|
|
39 |
'storeId=SpacesStore&dontcache=1690546402658&caption=&object_url=ccrep%3A%2F%2F' .
|
|
|
40 |
'enterprise-docker-maven-fixes-8-0%2F0fc4e8bb-3837-474b-a975-255ee9de65ee&mediatype=file-image' .
|
|
|
41 |
'&mimetype=image%2Fjpeg&window_version=0&title=Khinkali_551.jpg&width=1000&'
|
|
|
42 |
. 'height=582" contenteditable="false"></a></p><p dir="ltr" style="text-align: left;">' .
|
|
|
43 |
'<a class="edusharing_atto" style="" '
|
|
|
44 |
. 'href="http://test.de/lib/editor/atto/plugins/edusharing/preview.php?resourceId=6&' .
|
|
|
45 |
'nodeId=0fc4e8bb-3837-474b-a975-255ee9de65ee&storeProtocol=workspace&storeId=SpacesStore&'
|
|
|
46 |
.'dontcache=1690546402658&caption=&object_url=ccrep%3A%2F%2Fenterprise-docker-maven-fixes-8-0'
|
|
|
47 |
. '%2F0fc4e8bb-3837-474b-a975-255ee9de65ee&mediatype=file-image&mimetype=image%2Fjpeg&'
|
|
|
48 |
. 'window_version=0&title=Khinkali_551.jpg&width=1000&height=582" contenteditable="false">'
|
|
|
49 |
. '</a></p><p></p><div><img alt="chernihiv.jpg" width="275" height="183" class="edusharing_atto" '
|
|
|
50 |
. 'style="" title="chernihiv.jpg" contenteditable="false" src="http://test.de/lib/editor/atto/plugins/'
|
|
|
51 |
. 'edusharing/preview.php?resourceId=9&nodeId=6d351b14-f313-43a6-b107-86615d6dcb37&'.
|
|
|
52 |
'storeProtocol=workspace&storeId=SpacesStore&dontcache=1691051530812&caption=&'
|
|
|
53 |
. 'object_url=ccrep%3A%2F%2Fenterprise-docker-maven-fixes-8-0%2F6d351b14-f313-43a6-b107-86615d6dcb37'
|
|
|
54 |
. '&mediatype=file-image&mimetype=image%2Fjpeg&window_version=0&title=chernihiv.jpg'
|
|
|
55 |
. '&width=275&height=183"><p></p>Mehr text hier</div><div><br></div><div>'
|
|
|
56 |
. '<img alt="chernihiv.jpg" class="edusharing_atto" style="" title="chernihiv.jpg" '
|
|
|
57 |
. 'src="http://test.de/lib/editor/atto/plugins/edusharing/preview.php?resourceId=7&'
|
|
|
58 |
. 'nodeId=6d351b14-f313-43a6-b107-86615d6dcb37&storeProtocol=workspace&storeId=SpacesStore&'
|
|
|
59 |
. 'dontcache=1690804225011&caption=&object_url=ccrep%3A%2F%2Fenterprise-docker-maven-fixes'
|
|
|
60 |
.'-8-0%2F6d351b14-f313-43a6-b107-86615d6dcb37&mediatype=file-image&mimetype=image%2Fjpeg&'
|
|
|
61 |
. 'window_version=0&title=chernihiv.jpg&width=275&height=183" width="275" height="183" '
|
|
|
62 |
. 'contenteditable="false"><p></p><br></div><p></p>';
|
|
|
63 |
}
|
|
|
64 |
}
|