-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUploadFileForVideoFixture.php
More file actions
75 lines (69 loc) · 1.67 KB
/
UploadFileForVideoFixture.php
File metadata and controls
75 lines (69 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* UploadFileForVideoFixture
*
* @author Mitsuru Mutaguchi <mutaguchi@opensource-workshop.jp>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
App::uses('UploadFileFixture', 'Files.Test/Fixture');
/**
* UploadFileForVideoFixture
*
* @author Mitsuru Mutaguchi <mutaguchi@opensource-workshop.jp>
* @package NetCommons\Videos\Test\Fixture
*/
class UploadFileForVideoFixture extends UploadFileFixture {
/**
* Model name
*
* @var string
*/
public $name = 'UploadFile';
/**
* Full Table Name
*
* @var string
*/
public $table = 'upload_files';
/**
* Records
*
* @var array
*/
public $records = array(
array( // video
'id' => 11,
'plugin_key' => 'videos',
'content_key' => 'content_key_1',
'field_name' => 'video_file',
'original_name' => 'video1.mp4',
'path' => 'files/upload_file/real_file_name/1/',
'real_file_name' => 'video1.mp4',
'extension' => 'mp4',
'mimetype' => 'video/mp4',
'size' => 4544587,
'download_count' => 11,
'total_download_count' => 11,
'room_id' => '2',
'block_key' => 'Lorem ipsum dolor sit amet',
),
array( // video
'id' => 12,
'plugin_key' => 'videos',
'content_key' => 'content_key_1',
'field_name' => 'video_file',
'original_name' => 'video2.MOV',
'path' => 'files/upload_file/real_file_name/1/',
'real_file_name' => 'video2.MOV',
'extension' => 'MOV',
'mimetype' => 'video/quicktime',
'size' => 4544587,
'download_count' => 12,
'total_download_count' => 12,
'room_id' => '2',
'block_key' => 'Lorem ipsum dolor sit amet',
),
);
}