Improve tests

This commit is contained in:
Daniil Gentili 2019-12-29 14:23:41 +01:00
parent 1bf41186de
commit 6ba7db89c8
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 5 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler
'reply_to_msg_id' => $messageId,
'media' => [
'_' => 'inputMediaUploadedDocument',
'file' => $file,
'file' => $url,
'attributes' => [
['_' => 'documentAttributeFilename', 'file_name' => $name]
]

View File

@ -113,6 +113,7 @@ export MTPROTO_SETTINGS='{"logger":{"logger_level":5}}'
php tools/makephar.php $HOME/phar5 "madeline$php$branch.phar" $TRAVIS_COMMIT
cat tests/testing.php
tests/testing.php <<EOF
m
$API_ID
@ -125,10 +126,12 @@ n
EOF
export TRAVIS_PHAR="madeline$php$branch.phar"
cat tests/testing.php
tests/testing.php
rm testing.madeline
cat tests/testing.php
tests/testing.php <<EOF
m
$API_ID
@ -140,6 +143,7 @@ n
n
EOF
cat tests/testing.php
tests/testing.php
eval "$(ssh-agent -s)"